Skip to content

Commit

Permalink
Add test for gatherOptions in JquiWidgetMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Apr 7, 2015
1 parent 756fc25 commit 97cbc5b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/unit/mixins/jqui-widget-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@ import JquiWidgetMixin from 'ember-cli-jquery-ui/mixins/jqui-widget';

module('JquiWidgetMixin');

// Replace this with your real tests.
test('it works', function() {
var JquiWidgetObject = Ember.Object.extend(JquiWidgetMixin);
var subject = JquiWidgetObject.create();
ok(subject);
});

test('gathers options', function() {
var JquiWidgetObject = Ember.Object.extend(JquiWidgetMixin, {
uiOptions: ['option1', 'option2']
});
var subject = JquiWidgetObject.create();
var options = subject._gatherOptions();
ok('option1' in options);
ok('option2' in options);
});

0 comments on commit 97cbc5b

Please sign in to comment.