mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 06:25:18 -04:00
Clean code.
This commit is contained in:
parent
4daab5d77b
commit
9102b6d1c3
7 changed files with 56 additions and 147 deletions
|
@ -9,6 +9,23 @@ describe('premisses', function () {
|
|||
assert.strictEqual(window, util.GLOBAL);
|
||||
});
|
||||
|
||||
it('jQuery is defined', function () {
|
||||
|
||||
assert.isFunction(jQuery);
|
||||
assert.strictEqual(jQuery, window.jQuery);
|
||||
assert.strictEqual(jQuery.fn.jquery, '2.1.3');
|
||||
|
||||
assert.strictEqual($, jQuery);
|
||||
assert.strictEqual($, window.$);
|
||||
});
|
||||
|
||||
it('lodash is defined', function () {
|
||||
|
||||
assert.isFunction(_);
|
||||
assert.strictEqual(_, window._);
|
||||
assert.strictEqual(_.VERSION, '3.6.0');
|
||||
});
|
||||
|
||||
it('util is global object', function () {
|
||||
|
||||
assert.isPlainObject(util);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue