cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
30 lines (27 loc) • 1.01 kB
JavaScript
require( 'should' );
var fs = require( 'fs' );
var widgetFileBuilder = require( '../src/widgetFileBuilder' );
var fileNameBuilder = require( '../src/fileNameBUilder' );
var browserifyWidget = require( '../src/browserifyWidget' );
describe( 'Given a widgetFileBUilder', function() {
it( 'should exist', function() {
browserifyWidget.should.exist;
} );
it( 'should have a make method', function() {
browserifyWidget.make.should.exist;
} );
it( 'make method should return a produced file', function( done ) {
this.timeout( 5000 );
var sut = fileNameBuilder.getFileName( 'test' );
widgetFileBuilder.build( {
fileName: sut,
widgets: [ 'onBoarding' ]
}, function( err, fileName ) {
browserifyWidget.make( fileName, function( err, content ) {
console.log( 'content' );
console.log( content );
done();
} )
} );
} );
} );