Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: zxypro1 <[email protected]>
  • Loading branch information
zxypro1 committed Mar 20, 2024
1 parent 38693f2 commit 092d685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/engine/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Engine from '../src';
import path from 'path';
import { AssertionError } from 'assert';
import { get } from 'lodash';
import { DevsError } from '@serverless-devs/utils';

test('指定 template 不存在', async () => {
const engine = new Engine({
Expand Down Expand Up @@ -330,7 +331,7 @@ test('validate projectName', async () => {
});
const context = await engine.start();
console.log(context);
expect(get(context, 'error[0]')).toBeInstanceOf(AssertionError);
expect(get(context, 'error[0]')).toBeInstanceOf(DevsError);
expect(get(context, 'error[0].message')).toBe(`The name of the project [deploy] overlaps with a command, please change it's name`);
expect(get(context, 'error[0].code')).toBe('ERR_ASSERTION');
});
Expand Down

0 comments on commit 092d685

Please sign in to comment.