File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ describe("main", function() {
311
311
} ) ;
312
312
} ) ;
313
313
314
- it ( "should pass query to loader without resource" , function ( ) {
314
+ it ( "should pass query to loader without resource with resource query " , function ( ) {
315
315
var result = require ( "../loaders/queryloader?query!?resourcequery" ) ;
316
316
result . should . be . eql ( {
317
317
resourceQuery : "?resourcequery" ,
@@ -320,6 +320,14 @@ describe("main", function() {
320
320
} ) ;
321
321
} ) ;
322
322
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
+
323
331
it ( "should pass query to multiple loaders" , function ( ) {
324
332
var result = require ( "../loaders/queryloader?query1!../loaders/queryloader?query2!./a?resourcequery" ) ;
325
333
result . should . be . a ( "object" ) ;
You can’t perform that action at this time.
0 commit comments