Skip to content

Commit 1967270

Browse files
chore: add another it in test
1 parent ab48800 commit 1967270

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/character.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ const config = require('config');
66
const serverConfig = config['server'];
77

88
describe('Endpoint Health', () => {
9-
it('Should be return status 200', async () => {
9+
it('Should be return 200 and characters', async () => {
1010
const result = await request(app).get(`${serverConfig['context']}/character`).send();
1111
expect(result.status).toBe(200);
1212
expect(result.body).not.toBeNull();
1313
});
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+
});
1419
});

0 commit comments

Comments
 (0)