Files
jasmine/spec/html/HtmlSpecFilterV2Spec.js
Steve Gravrock a457cf1b81 Simplify boot1.js
2025-10-09 16:42:42 -07:00

20 lines
581 B
JavaScript

describe('HtmlSpecFilterV2', function() {
it('should match when no string is provided', function() {
const specFilter = new privateUnderTest.HtmlSpecFilterV2();
expect(specFilter.matches('foo')).toBe(true);
expect(specFilter.matches('*bar')).toBe(true);
});
it('should only match the provided string', function() {
const specFilter = new privateUnderTest.HtmlSpecFilterV2({
filterString: function() {
return 'foo';
}
});
expect(specFilter.matches('foo')).toBe(true);
expect(specFilter.matches('bar')).toBe(false);
});
});