Skip to content

Commit

Permalink
test: remove oas2 leftover test
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Apr 16, 2019
1 parent 08fc0cd commit 1c1a01e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/http-server/src/__tests__/server.oas3.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,4 @@ describe('server', () => {
expect(response.statusCode).toBe(400);
});

test('should return response even if there is no content defined in spec', async () => {
server = createServer({}, { components: {}, config: { mock: true } });
await server.prism.load({
path: resolve(__dirname, 'fixtures', 'no-responses.oas2.yaml'),
});

const response = await server.fastify.inject({ method: 'GET', url: '/' });

expect(response.statusCode).toBe(200);
expect(response.headers['content-type']).toEqual('text/plain');
expect(response.payload).toEqual('');
});
});

0 comments on commit 1c1a01e

Please sign in to comment.