From 4d248313396cf73ccfcca639a7643895a20e4306 Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Tue, 26 Jul 2022 12:53:08 +0200 Subject: [PATCH] fix test: error message has been changed --- src/ng-add.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng-add.spec.ts b/src/ng-add.spec.ts index 4800f6b..673b3d1 100644 --- a/src/ng-add.spec.ts +++ b/src/ng-add.spec.ts @@ -119,7 +119,7 @@ describe('ng-add', () => { await expect( ngAdd({ project: PROJECT_NAME })(tree, {} as SchematicContext) - ).rejects.toThrowError('Invalid JSON character: "h" at 0:0.'); + ).rejects.toThrowError('Invalid workspace file - expected JSON object.'); }); it('should throw if specified project does not exist', async () => {