2014-11-09 09:31:15 +01:00
|
|
|
requirejs(['test-config', '../src/core'], function(config, TableFilter){
|
|
|
|
|
|
|
|
QUnit.start();
|
|
|
|
|
|
|
|
var dom = require('dom'),
|
2014-11-15 15:34:32 +01:00
|
|
|
AlternateRows = require('modules/alternateRows').AlternateRows;
|
2014-11-09 09:31:15 +01:00
|
|
|
|
|
|
|
var tf = new TableFilter('demo', {
|
|
|
|
alternate_rows: true
|
|
|
|
});
|
|
|
|
tf.init();
|
|
|
|
|
2014-11-15 09:39:10 +01:00
|
|
|
module('Sanity checks');
|
|
|
|
test('AlternateRows component', function() {
|
2014-11-09 09:31:15 +01:00
|
|
|
deepEqual(tf.Cpt.alternateRows instanceof AlternateRows, true, 'AlternateRows constructor');
|
|
|
|
notEqual(tf.Cpt.alternateRows, null, 'AlternateRows instanciated');
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|