@contentful/react-apps-toolkit 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export declare const useHelloWorld: () => string;
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useHelloWorld = void 0;
4
+ var useHelloWorld = function () {
5
+ return 'hello world';
6
+ };
7
+ exports.useHelloWorld = useHelloWorld;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_hooks_1 = require("@testing-library/react-hooks");
4
+ var index_1 = require("./index");
5
+ test('should increment counter', function () {
6
+ var result = (0, react_hooks_1.renderHook)(function () { return (0, index_1.useHelloWorld)(); }).result;
7
+ expect(result.current).toBe('hello world');
8
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/react-apps-toolkit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Toolkit for building a Contentful app in React",
5
5
  "keywords": [],
6
6
  "author": "Contentful GmbH",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "01a674780aa7356a9f3bcea064ff58a4f24032cb"
48
+ "gitHead": "c5f32182b72665582965811ec7a6fed3b90f9c6a"
49
49
  }