Skip to content

Commit

Permalink
Fix #779 : Remove the should prefix from all unit tests titles (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitKambli committed Apr 27, 2024
1 parent e52df7a commit 327bc37
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 105 deletions.
8 changes: 4 additions & 4 deletions __tests__/api-json.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { searchTerm } from './shared/commands';

describe('JSON Dictionary', () => {
describe('/GET words', () => {
it.skip('should return back word information', async () => {
it.skip('return back word information', async () => {
const keyword = 'agụū';
const res = await searchTerm(keyword);
expect(res.status).toEqual(200);
Expand All @@ -14,21 +14,21 @@ describe('JSON Dictionary', () => {
expect(res.body[keyword][0].wordClass).toEqual('NNC');
});

it('should return an error for searching no word', async () => {
it('return an error for searching no word', async () => {
const res = await searchTerm();
expect(res.status).toEqual(400);
expect(res.body.error).toEqual(NO_PROVIDED_TERM);
});

it.skip('should return the same term information', async () => {
it.skip('return the same term information', async () => {
const { status, body: normalizeData } = await searchTerm('ndi ndi');
expect(status).toEqual(200);
const { status: rawStatus, body: rawData } = await searchTerm('ndị ndi');
expect(rawStatus).toEqual(200);
expect(isEqual(normalizeData, rawData)).toEqual(true);
});

it('should return term using variation', async () => {
it('return term using variation', async () => {
const res = await searchTerm('-mu-mù');
expect(res.status).toEqual(200);
expect(res.body['-mụ-mù']).toHaveLength(1);
Expand Down

0 comments on commit 327bc37

Please sign in to comment.