Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
(WIP) travis bashing - try some console logs to see what is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
swilliamset committed Nov 4, 2016
1 parent 780e81d commit 65cfb17
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions test/commonjs-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,15 @@ var moment = require( 'moment' );
var fuelux = require( '../dist/js/npm' );
require( '../bower_components/qunit/qunit/qunit' );

// In order to be be UMD compliant, modules must work with
// CommonJS. The following tests check to see if the plugin
// is on the jQuery namespace and nothing else.
console.log('$: ', $);
console.log('boostrap: ', bootsrap, ' bootrap carousel: ', $.fn.carousel);
console.log('moment: ', moment);
console.log('fuelux: ', fuelux, ' fuelux repeater: ', $.fn.repeater);
console.log('QUnit: ', QUnit);

QUnit.start(); // starting qunit, or phantom js will have a problem
QUnit.test( 'testing', function ( assert ) {
assert.ok( true, 'testing is true' );

QUnit.test( 'fuelux controls should be defined on jQuery object', function ( assert ) {
assert.ok( $().combobox, 'combobox method is defined' );
assert.ok( $().datepicker, 'datepicker method is defined' );
assert.ok( $().dropdownautoflip, 'dropdownautoflip method is defined' );
assert.ok( $().infinitescroll, 'infinitescroll method is defined' );
assert.ok( $().loader, 'loader method is defined' );
assert.ok( $().pillbox, 'pillbox method is defined' );
assert.ok( $().radio, 'radio method is defined' );
assert.ok( $().repeater, 'repeater method is defined' );
assert.ok( $.fn.repeater.viewTypes.list, 'repeater list view is defined' );
assert.ok( $.fn.repeater.viewTypes.thumbnail, 'repeater thumbnail view is defined' );
assert.ok( $().scheduler, 'scheduler method is defined' );
assert.ok( $().search, 'search method is defined' );
assert.ok( $().selectlist, 'selectlist method is defined' );
assert.ok( $().spinbox, 'spinbox method is defined' );
assert.ok( $().tree, 'tree method is defined' );
assert.ok( $().wizard, 'wizard method is defined' );
// I"M DONE!
assert.async()();
} );

0 comments on commit 65cfb17

Please sign in to comment.