Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
Signed-off-by: zxypro1 <[email protected]>
  • Loading branch information
zxypro1 committed Jun 21, 2024
1 parent f08e609 commit d446aef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/engine/__tests__/engine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ describe('Engine Class', () => {

expect(loggerSpy).toHaveBeenCalledWith(
`The [deploy] command was not found.`,
`Please check the component ${mockItem.component} has the deploy command. Serverless Devs documents:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command`
`Please check the component ${mockItem.component} has the deploy command. Serverless Devs documents:https://manual.serverless-devs.com/`
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ test('validate projectName', async () => {
const context = await engine.start();
console.log(context);
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].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 d446aef

Please sign in to comment.