diff --git a/package-lock.json b/package-lock.json index e690df8..b3caa4f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "@bradgarropy/node-library-starter", - "version": "1.2.1", + "name": "@bradgarropy/plop-generator-react-hook", + "version": "0.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "@bradgarropy/node-library-starter", - "version": "1.2.1", + "name": "@bradgarropy/plop-generator-react-hook", + "version": "0.0.2", "license": "MIT", "dependencies": { "tslib": "^2.1.0" diff --git a/package.json b/package.json index 767e493..26aea9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bradgarropy/plop-generator-react-hook", - "version": "0.0.1", + "version": "0.0.2", "description": "💧 plop generator react hook", "keywords": [ "node", diff --git a/src/templates/test.hbs b/src/templates/test.hbs index bd18ed6..5d3321b 100644 --- a/src/templates/test.hbs +++ b/src/templates/test.hbs @@ -1,5 +1,5 @@ import {renderHook} from "@testing-library/react-hooks" -import {{camelCase name}} from "hooks" +import {{{camelCase name}}} from "hooks" test("renders hook", () => { const {result} = renderHook(() => {{camelCase name}}())