Skip to content

Commit

Permalink
test: fix broken nest collection unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 6, 2018
1 parent e7952ec commit d888e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/cli",
"version": "5.6.0",
"version": "5.6.1",
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@angular-devkit/core": "^0.8.1",
"@angular-devkit/schematics-cli": "^0.8.1",
"@nestjs/schematics": "^5.9.5",
"@nestjs/schematics": "^5.9.6",
"@nuxtjs/opencollective": "^0.1.0",
"@types/jest": "^22.2.3",
"chalk": "^2.4.1",
Expand Down
4 changes: 3 additions & 1 deletion test/lib/schematics/nest.collection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ describe('Nest Collection', () => {
try {
await collection.execute('name', []);
} catch (error) {
expect(error.message).toEqual('Invalid schematic name');
expect(error.message).toEqual(
'Invalid schematic "name". Please, ensure that "name" really exists in this collection.',
);
}
});
});

0 comments on commit d888e35

Please sign in to comment.