Deprecate HtmlReporter and HtmlSpecFilter

This commit is contained in:
Steve Gravrock
2025-10-09 07:02:39 -07:00
parent 0ad54fc6f0
commit 9b3cc08818
6 changed files with 50 additions and 4 deletions

View File

@@ -1,4 +1,15 @@
describe('HtmlSpecFilter', function() {
beforeEach(function() {
spyOn(jasmineUnderTest.getEnv(), 'deprecated');
});
it('emits a deprecation warning', function() {
new jasmineUnderTest.HtmlSpecFilter();
expect(jasmineUnderTest.getEnv().deprecated).toHaveBeenCalledWith(
'HtmlReporter and HtmlSpecFilter are deprecated. Use HtmlReporterV2 instead.'
);
});
it('should match when no string is provided', function() {
const specFilter = new jasmineUnderTest.HtmlSpecFilter();