add static files
This commit is contained in:
parent
2de5a8030e
commit
70c09da9f8
336 changed files with 82322 additions and 0 deletions
29
static/vendor/select2/tests/data/base-tests.js
vendored
Normal file
29
static/vendor/select2/tests/data/base-tests.js
vendored
Normal file
|
|
@ -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'
|
||||
);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue