builder-amd-css
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -28,4 +28,4 @@ var mutex, queue, requireCssFiles, | ||
args[ 2 ] = function() { | ||
callback.apply( {}, arguments ); | ||
queue.shift(); | ||
callback.apply( {}, arguments ); | ||
dequeueBuildCss(); | ||
@@ -32,0 +32,0 @@ }; |
{ | ||
"name": "builder-amd-css", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -92,2 +92,30 @@ var files, | ||
describe( "Serial runs", function() { | ||
var barCss, fooCss; | ||
before(function( done ) { | ||
async.series([ | ||
function( callback ) { | ||
AmdCssBuilder( files, { include: [ "bar" ] }, callback ); | ||
}, | ||
function( callback ) { | ||
AmdCssBuilder( files, { include: [ "foo" ] }, callback ); | ||
} | ||
], function( error, result ) { | ||
if ( error ) { | ||
return done( error ); | ||
} | ||
barCss = result[ 0 ][ 0 ]; | ||
fooCss = result[ 1 ][ 0 ]; | ||
done(); | ||
}); | ||
}); | ||
it( "should work just fine", function() { | ||
expect( barCss ).to.equal( ".bar {}\n" ); | ||
expect( fooCss ).to.equal( ".foo {}\n.bar {}\n" ); | ||
}); | ||
}); | ||
describe( "Concurrent runs", function() { | ||
@@ -94,0 +122,0 @@ var barCss, fooCss; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40284
729