We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b9e8d3 commit 5c14a7cCopy full SHA for 5c14a7c
test/url-option.test.js
@@ -86,15 +86,15 @@ describe('"url" option', () => {
86
it("should work with url.filter", async () => {
87
const compiler = getCompiler("./url/url.js", {
88
url: {
89
- filter: (url, resourcePath) => {
+ filter: (_url, resourcePath) => {
90
expect(typeof resourcePath === "string").toBe(true);
91
92
- if (url.startsWith("/guide/img")) {
+ if (_url.startsWith("/guide/img")) {
93
return false;
94
}
95
96
// Don't handle `img.png`
97
- if (url.includes("img.png")) {
+ if (_url.includes("img.png")) {
98
99
100
0 commit comments