PHP Classes

File: vendors/gentelella/vendors/select2/tests/options/ajax-tests.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/select2/tests/options/ajax-tests.js   Download  
File: vendors/gentelella/vendors/select2/tests/options/ajax-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: 638 bytes
 

Contents

Class file image Download
module('Defaults - Ajax'); test('options are merged recursively with default options', function (assert) { var defaults = require('select2/defaults'); var ajaxDelay = 250; var ajaxUrl = 'http://www.test.com'; var mergedOptions; defaults.set('ajax--delay', ajaxDelay); mergedOptions = defaults.apply({ ajax: { url: ajaxUrl } }); assert.equal( mergedOptions.ajax.delay, ajaxDelay, 'Ajax default options are present on the merged options' ); assert.equal( mergedOptions.ajax.url, ajaxUrl, 'Ajax provided options are present on the merged options' ); defaults.reset(); });