Skip to content

Commit

Permalink
Remove awkward request body from a GET test (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Feb 22, 2021
1 parent ae29b0c commit 1a78efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-items-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

**template/koa-rest-api:** Remove awkward request body from GET test
7 changes: 1 addition & 6 deletions template/koa-rest-api/src/api/jobs/getJobs.test.ts
Original file line number Diff line number Diff line change
@@ -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, []));
});

0 comments on commit 1a78efa

Please sign in to comment.