Skip to content

Commit c41e153

Browse files
committed
added one more test
1 parent ee84024 commit c41e153

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/browsertest/lib/index.web.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ describe("main", function() {
311311
});
312312
});
313313

314-
it("should pass query to loader without resource", function() {
314+
it("should pass query to loader without resource with resource query", function() {
315315
var result = require("../loaders/queryloader?query!?resourcequery");
316316
result.should.be.eql({
317317
resourceQuery: "?resourcequery",
@@ -320,6 +320,14 @@ describe("main", function() {
320320
});
321321
});
322322

323+
it("should pass query to loader without resource", function() {
324+
var result = require("../loaders/queryloader?query!");
325+
result.should.be.eql({
326+
query: "?query",
327+
prev: null
328+
});
329+
});
330+
323331
it("should pass query to multiple loaders", function() {
324332
var result = require("../loaders/queryloader?query1!../loaders/queryloader?query2!./a?resourcequery");
325333
result.should.be.a("object");

0 commit comments

Comments
 (0)