We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab48800 commit 1967270Copy full SHA for 1967270
test/character.spec.ts
@@ -6,9 +6,14 @@ const config = require('config');
6
const serverConfig = config['server'];
7
8
describe('Endpoint Health', () => {
9
- it('Should be return status 200', async () => {
+ it('Should be return 200 and characters', async () => {
10
const result = await request(app).get(`${serverConfig['context']}/character`).send();
11
expect(result.status).toBe(200);
12
expect(result.body).not.toBeNull();
13
});
14
+
15
+ it('Should dont be return status 200', async () => {
16
+ const result = await request(app).get(`${serverConfig['context']}/character?name=asdsa`).send();
17
+ expect(result.status).not.toBe(200);
18
+ });
19
0 commit comments