Clicking a link in HtmlReporterV2 does exact filtering
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user