Revert "Move knowledge of query parameters out of boot1.js"
This reverts commit 6715f24fd0.
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
describe('HtmlExactSpecFilter', function() {
|
||||
it('matches everything when no string is provided', function() {
|
||||
const specFilter = new jasmineUnderTest.HtmlExactSpecFilter({
|
||||
queryString: {
|
||||
getParam(name) {
|
||||
return '';
|
||||
}
|
||||
filterString() {
|
||||
return '';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -13,12 +11,8 @@ describe('HtmlExactSpecFilter', function() {
|
||||
|
||||
it('matches a spec with the exact same path', function() {
|
||||
const specFilter = new jasmineUnderTest.HtmlExactSpecFilter({
|
||||
queryString: {
|
||||
getParam(name) {
|
||||
if (name === 'spec') {
|
||||
return '["a","b","c"]';
|
||||
}
|
||||
}
|
||||
filterString() {
|
||||
return '["a","b","c"]';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -27,12 +21,8 @@ describe('HtmlExactSpecFilter', function() {
|
||||
|
||||
it('matches a spec whose path has the filter path as a prefix', function() {
|
||||
const specFilter = new jasmineUnderTest.HtmlExactSpecFilter({
|
||||
queryString: {
|
||||
getParam(name) {
|
||||
if (name === 'spec') {
|
||||
return '["a","b"]';
|
||||
}
|
||||
}
|
||||
filterString() {
|
||||
return '["a","b"]';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -41,12 +31,8 @@ describe('HtmlExactSpecFilter', function() {
|
||||
|
||||
it('does not match a spec with a different path', function() {
|
||||
const specFilter = new jasmineUnderTest.HtmlExactSpecFilter({
|
||||
queryString: {
|
||||
getParam(name) {
|
||||
if (name === 'spec') {
|
||||
return '["a","b","c"]';
|
||||
}
|
||||
}
|
||||
filterString() {
|
||||
return '["a","b","c"]';
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user