mirror of
https://github.com/ExactTarget/fuelux.git
synced 2026-01-10 23:18:07 -05:00
23 lines
598 B
JavaScript
23 lines
598 B
JavaScript
define(function doesCallDataSourceModule (require) {
|
|
var $ = require('jquery');
|
|
|
|
return function doesCallDataSource (assert) {
|
|
assert.expect( 3 );
|
|
|
|
this.$tree.tree({
|
|
dataSource: function dataSource (options, callback) {
|
|
assert.ok(true, 'dataSource function called prior to rendering');
|
|
assert.equal(typeof options, 'object', 'dataSource provided options object');
|
|
assert.equal(typeof callback, 'function', 'dataSource provided callback function');
|
|
callback({
|
|
data: []
|
|
});
|
|
}
|
|
});
|
|
|
|
var $fixture = $( '#qunit-fixture' );
|
|
|
|
$fixture.append(this.$tree);
|
|
};
|
|
});
|