diff options
Diffstat (limited to 'public/bower_components/select2/tests/data/base-tests.js')
-rw-r--r-- | public/bower_components/select2/tests/data/base-tests.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/public/bower_components/select2/tests/data/base-tests.js b/public/bower_components/select2/tests/data/base-tests.js new file mode 100644 index 0000000..b90158f --- /dev/null +++ b/public/bower_components/select2/tests/data/base-tests.js @@ -0,0 +1,29 @@ +module('Data adapters - Base'); + +var BaseData = require('select2/data/base'); +var $ = require('jquery'); +var Options = require('select2/options'); + +var options = new Options({}); + +test('current is required', function (assert) { + var data = new BaseData($('#qunit-fixture select'), options); + + assert.throws( + function () { + data.current(function () {}); + }, + 'current has no default implementation' + ); +}); + +test('query is required', function (assert) { + var data = new BaseData($('#qunit-fixture select'), options); + + assert.throws( + function () { + data.query({}, function () {}); + }, + 'query has no default implementation' + ); +}); |