Wordpress/tests/qunit/editor/tinymce/util/Tools.js

9 lines
267 B
JavaScript
Raw Normal View History

ModuleLoader.require(["tinymce/util/Tools"], function(Tools) {
module("tinymce.util.Tools");
test('extend', function() {
deepEqual({a: 1, b: 2, c: 3}, Tools.extend({a: 1}, {b: 2}, {c: 3}));
deepEqual({a: 1, c: 3}, Tools.extend({a: 1}, null, {c: 3}));
});
});