From fc617d5a676965219962aed5647949265b3d755e Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Tue, 10 Nov 2015 11:36:23 +0000 Subject: [PATCH] api-builder: fix incorrect jasmine matcher in 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 feabf4d702..8a11703548 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'); }) - .toThrowError('Error accessing target "b". It is not in the list of allowed targets: a'); + .toThrow('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'); }) - .toThrowError('Error accessing target "d". It is not in the list of allowed targets: a,b,c'); + .toThrow('Error accessing target "d". It is not in the list of allowed targets: a,b,c'); }); }); });