Skip to content

Commit 5c14a7c

Browse files
committed
fix: rename local url variable in url option test
1 parent 7b9e8d3 commit 5c14a7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/url-option.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ describe('"url" option', () => {
8686
it("should work with url.filter", async () => {
8787
const compiler = getCompiler("./url/url.js", {
8888
url: {
89-
filter: (url, resourcePath) => {
89+
filter: (_url, resourcePath) => {
9090
expect(typeof resourcePath === "string").toBe(true);
9191

92-
if (url.startsWith("/guide/img")) {
92+
if (_url.startsWith("/guide/img")) {
9393
return false;
9494
}
9595

9696
// Don't handle `img.png`
97-
if (url.includes("img.png")) {
97+
if (_url.includes("img.png")) {
9898
return false;
9999
}
100100

0 commit comments

Comments
 (0)