Clicking a link in HtmlReporterV2 does exact filtering

This commit is contained in:
Steve Gravrock
2025-10-08 22:13:00 -07:00
parent c042665d9c
commit 0ad54fc6f0
8 changed files with 195 additions and 83 deletions

View File

@@ -10,17 +10,17 @@ describe('HtmlReporterV2Urls', function() {
it('configures a matching spec filter', function() {
const queryString = mockQueryString();
queryString.getParam.withArgs('spec').and.returnValue('foo');
queryString.getParam.withArgs('path').and.returnValue('["foo","bar"]');
const subject = new jasmineUnderTest.HtmlReporterV2Urls({ queryString });
const config = subject.configFromCurrentUrl();
const matching = {
getFullName() {
return 'foobar';
getPath() {
return ['foo', 'bar'];
}
};
const nonMatching = {
getFullName() {
return 'baz';
getPath() {
return ['foobar'];
}
};
expect(config.specFilter(matching)).toEqual(true);