Skip to content

Commit

Permalink
chore: replace hardcoded name with var in template
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartholomae committed Aug 13, 2020
1 parent 149d345 commit 83d1eeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ to: packages/<%= h.inflection.dasherize(name.toLowerCase()) %>/examples/helloWor
import request from "supertest";
const server = request("http://localhost:3000/dev");

describe("Handler with no sniff middleware", () => {
describe("Handler with <%= h.inflection.dasherize(name) %> middleware", () => {
it("returns 200", async () => {
await server.get("/hello").expect(200);
});
Expand Down
2 changes: 1 addition & 1 deletion _templates/middleware/new/package/src/middleware.test.ts.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("<%=h.inflection.camelize(name, true) %>", () => {
body: "",
};
const handler = jest.fn().mockResolvedValue(response);
expect(await noSniff()(handler)({} as any, {} as any)).toMatchObject(
expect(await <%=h.inflection.camelize(name, true) %>()(handler)({} as any, {} as any)).toMatchObject(
response
);
});
Expand Down

0 comments on commit 83d1eeb

Please sign in to comment.