Skip to content

Commit

Permalink
test: update test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 23, 2021
1 parent 5b9b417 commit 7227db6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions example/basic/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import index from './';

describe('sum', () => {
it('works', () => {
expect(index()).toBe(11);
it('works', async () => {
const num = await index();
expect(num).toBe(11);
});
});
4 changes: 3 additions & 1 deletion example/basic/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/// <reference types="jest" />

import { sum } from '../src/utils/sum';

describe('sum', () => {
it('works', () => {
it('works', async () => {
expect(sum(1, 1)).toEqual(2);
});
});

0 comments on commit 7227db6

Please sign in to comment.