From 1a78efabf66613fd3ddc4dde33e0e24a7438a8d8 Mon Sep 17 00:00:00 2001 From: Ryan Ling Date: Tue, 23 Feb 2021 08:46:54 +1100 Subject: [PATCH] Remove awkward request body from a GET test (#362) --- .changeset/large-items-rhyme.md | 5 +++++ template/koa-rest-api/src/api/jobs/getJobs.test.ts | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .changeset/large-items-rhyme.md diff --git a/.changeset/large-items-rhyme.md b/.changeset/large-items-rhyme.md new file mode 100644 index 000000000..394fc0415 --- /dev/null +++ b/.changeset/large-items-rhyme.md @@ -0,0 +1,5 @@ +--- +'skuba': patch +--- + +**template/koa-rest-api:** Remove awkward request body from GET test diff --git a/template/koa-rest-api/src/api/jobs/getJobs.test.ts b/template/koa-rest-api/src/api/jobs/getJobs.test.ts index c07a14cc6..723111222 100644 --- a/template/koa-rest-api/src/api/jobs/getJobs.test.ts +++ b/template/koa-rest-api/src/api/jobs/getJobs.test.ts @@ -1,14 +1,9 @@ import { agentFromRouter } from 'src/testing/server'; -import { mockJobInput } from 'src/testing/types'; import { jobRouter } from '.'; const agent = agentFromRouter(jobRouter); describe('getJobsHandler', () => { - it('provides no results on first load', () => { - const jobInput = mockJobInput(); - - return agent.get('/').send(jobInput).expect(200, []); - }); + it('provides no results on first load', () => agent.get('/').expect(200, [])); });