From d888e35516f1092186c5892dc897c01c8bc5c101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Tue, 6 Nov 2018 09:47:35 +0100 Subject: [PATCH] test: fix broken nest collection unit tests --- package.json | 4 ++-- test/lib/schematics/nest.collection.spec.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 714bb11d4..73791e414 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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", diff --git a/test/lib/schematics/nest.collection.spec.ts b/test/lib/schematics/nest.collection.spec.ts index 96e88177d..e6c69143b 100644 --- a/test/lib/schematics/nest.collection.spec.ts +++ b/test/lib/schematics/nest.collection.spec.ts @@ -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.', + ); } }); });