Skip to content

Commit d9cb811

Browse files
committed
Add more tests for filename url
Ref #121
1 parent 0480357 commit d9cb811

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/GetFilenameFromUrl.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ describe("GetFilenameFromUrl", function() {
5454
outputPath: "/dist",
5555
publicPath: "/",
5656
expected: false, // publicPath is not in url, so it should fail
57+
}, {
58+
url: "/bar/",
59+
outputPath: "/foo",
60+
publicPath: "/bar/",
61+
expected: "/foo",
62+
}, {
63+
url: "/bar/",
64+
outputPath: "/",
65+
publicPath: "http://localhost/foo/",
66+
expected: false,
5767
}
5868
];
5969
results.forEach(testUrl);

0 commit comments

Comments
 (0)