From 46735ad9251177efb987baf8f4148e15b563d14e Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Wed, 9 Dec 2015 11:51:52 +0000 Subject: [PATCH] chore(doc-gen): fix target-package tests --- .../target-package/services/targetEnvironments.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/api-builder/target-package/services/targetEnvironments.spec.js b/tools/api-builder/target-package/services/targetEnvironments.spec.js index 8a11703548..feabf4d702 100644 --- a/tools/api-builder/target-package/services/targetEnvironments.spec.js +++ b/tools/api-builder/target-package/services/targetEnvironments.spec.js @@ -28,7 +28,7 @@ describe('target inline-tag-def', function() { te.removeAllowed('b'); expect(te.isActive('a')).toBe(false); expect(function() { te.isActive('b'); }) - .toThrow('Error accessing target "b". It is not in the list of allowed targets: a'); + .toThrowError('Error accessing target "b". It is not in the list of allowed targets: a'); }); }); @@ -99,7 +99,7 @@ describe('target inline-tag-def', function() { expect(te.someActive([])).toBe(false); expect(function() { te.someActive('d'); }) - .toThrow('Error accessing target "d". It is not in the list of allowed targets: a,b,c'); + .toThrowError('Error accessing target "d". It is not in the list of allowed targets: a,b,c'); }); }); });