Skip to content

Commit f273544

Browse files
committed
1 parent 152683e commit f273544

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var window = {};
2+
3+
it("should be able to set the public path", function() {
4+
window.something = "something";
5+
__webpack_public_path__ = window.something;
6+
__webpack_public_path__.should.be.eql("something");
7+
8+
__webpack_public_path__ = "abc";
9+
__webpack_public_path__.should.be.eql("abc");
10+
11+
__webpack_public_path__ = func();
12+
__webpack_public_path__.should.be.eql("func");
13+
14+
function func() {
15+
return "func";
16+
}
17+
});

0 commit comments

Comments
 (0)