PHP Classes

File: vendors/select2/tests/data/base-tests.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/select2/tests/data/base-tests.js   Download  
File: vendors/select2/tests/data/base-tests.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 667 bytes
 

Contents

Class file image Download
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' ); });