Skip to content

Commit

Permalink
fix: rename local url variable in url option test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenkao committed Apr 8, 2024
1 parent 7b9e8d3 commit 5c14a7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/url-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ describe('"url" option', () => {
it("should work with url.filter", async () => {
const compiler = getCompiler("./url/url.js", {
url: {
filter: (url, resourcePath) => {
filter: (_url, resourcePath) => {
expect(typeof resourcePath === "string").toBe(true);

if (url.startsWith("/guide/img")) {
if (_url.startsWith("/guide/img")) {
return false;
}

// Don't handle `img.png`
if (url.includes("img.png")) {
if (_url.includes("img.png")) {
return false;
}

Expand Down

0 comments on commit 5c14a7c

Please sign in to comment.