Move knowledge of query parameters out of boot1.js
This commit is contained in:
@@ -10,16 +10,13 @@ jasmineRequire.HtmlExactSpecFilter = function() {
|
||||
|
||||
/**
|
||||
* Create a filter instance.
|
||||
* @param options Object with a filterString method, which should
|
||||
* return the value of the "spec" query string parameter set by
|
||||
* {@link HtmlReporter}.
|
||||
* @param options Object with a queryString property, which should be an
|
||||
* instance of {@link QueryString}.
|
||||
*/
|
||||
constructor(options) {
|
||||
if (typeof options?.filterString !== 'function') {
|
||||
throw new Error('options.filterString must be a function');
|
||||
}
|
||||
|
||||
this.#getFilterString = options.filterString;
|
||||
this.#getFilterString = function() {
|
||||
return options.queryString.getParam('spec');
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user