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'); }); }); });