api-builder: fix incorrect jasmine matcher in target package tests
This commit is contained in:
parent
93c187de2a
commit
fc617d5a67
|
@ -28,7 +28,7 @@ describe('target inline-tag-def', function() {
|
||||||
te.removeAllowed('b');
|
te.removeAllowed('b');
|
||||||
expect(te.isActive('a')).toBe(false);
|
expect(te.isActive('a')).toBe(false);
|
||||||
expect(function() { te.isActive('b'); })
|
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(te.someActive([])).toBe(false);
|
||||||
|
|
||||||
expect(function() { te.someActive('d'); })
|
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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue