Skip to content

Commit

Permalink
type: Fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 6, 2021
1 parent 12658b6 commit c2b1d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/create.test.ts
Expand Up @@ -8,8 +8,8 @@ console.log = jest.fn();
it('create project. 1', async () => {
const opts: CreateOptions = {};
await create(opts, '');
// @ts-ignore
expect(
// @ts-ignore
console.log.mock.calls[0][0].indexOf('Please specify the project directory name') > -1,
).toBeTruthy();
});
Expand Down Expand Up @@ -64,8 +64,8 @@ it('create project. options => force', async () => {
path: 'https://kktjs.github.io/zip/',
};
await create(opts, '');
// @ts-ignore
expect(
// @ts-ignore
console.log.mock.calls[0][0].indexOf("Looks like there's already a directory called") > -1,
).toBeTruthy();
expect(mockExit).toHaveBeenCalledWith(1);
Expand Down

0 comments on commit c2b1d20

Please sign in to comment.