benderjs-chai
Advanced tools
Comparing version
@@ -8,27 +8,12 @@ /** | ||
var path = require( 'path' ); | ||
module.exports = { | ||
name: 'bender-pagebuilder-chai', | ||
files: [ | ||
var path = require( 'path' ), | ||
files = [ | ||
path.join( require.resolve( 'chai' ), '../chai.js' ), | ||
path.join( __dirname, '/adapter.js' ) | ||
], | ||
]; | ||
build: function( data ) { | ||
var head = [ '<head>' ]; | ||
module.exports.files.forEach( function( file ) { | ||
file = path.join( '/plugins/', file ).replace( /\\/g, '/' ); | ||
head.push( '<script src="' + file + '"></script>' ); | ||
} ); | ||
head.push( '</head>' ); | ||
data.parts.push( head.join( '' ) ); | ||
return data; | ||
} | ||
module.exports = { | ||
name: 'bender-framework-chai', | ||
files: files, | ||
include: files | ||
}; |
{ | ||
"name": "benderjs-chai", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Chai assertions adapter for Bender.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
5471
-5.05%27
-22.86%