Skip to content

Commit d1fa4c8

Browse files
committed
Fix tests
1 parent 0a802f2 commit d1fa4c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tests/test-filters.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs.push(function bnf3() {
4848

4949
// This just tests whether the filtering engine can deal with a very long URL
5050
jobs.push(function bnf4() {
51-
const looongURL = `/${'a-'.repeat(16384)}bnf4.gif`;
51+
const looongURL = `./${'a-'.repeat(16384)}bnf4.gif`;
5252
fetch(looongURL).then(response => response.text()).catch(( ) => { });
5353
});
5454

@@ -58,13 +58,13 @@ jobs.push(function bnf5() {
5858
});
5959

6060
jobs.push(function bnf6() {
61-
fetch('/bnf6.txt', { method: 'get' }).then(response => {
61+
fetch('./bnf6.txt', { method: 'get' }).then(response => {
6262
if ( response.ok !== true ) { return; }
6363
return response.text();
6464
}).then(text => {
6565
if ( typeof text !== 'string' ) { return; }
6666
if ( text !== 'ok' ) { return; }
67-
return fetch('/bnf6.txt', { method: 'head' })
67+
return fetch('./bnf6.txt', { method: 'head' })
6868
}).catch(( ) => {
6969
hide('#bnf6 .fail');
7070
});

0 commit comments

Comments
 (0)