mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-08 02:24:39 -04:00
Fix a lot eslint errors.
This commit is contained in:
parent
0c6143704a
commit
39ea94daa8
88 changed files with 3872 additions and 4930 deletions
|
@ -1,48 +1,36 @@
|
|||
(function () {
|
||||
'use strict';
|
||||
describe('modulejs', function () {
|
||||
it('is global object', function () {
|
||||
assert.isPlainObject(modulejs);
|
||||
assert.strictEqual(modulejs, window.modulejs);
|
||||
});
|
||||
|
||||
describe('modulejs', function () {
|
||||
it('.define() is function', function () {
|
||||
assert.isFunction(modulejs.define);
|
||||
});
|
||||
|
||||
it('is global object', function () {
|
||||
it('.require() is function', function () {
|
||||
assert.isFunction(modulejs.require);
|
||||
});
|
||||
|
||||
assert.isPlainObject(modulejs);
|
||||
assert.strictEqual(modulejs, window.modulejs);
|
||||
it('.state() is function', function () {
|
||||
assert.isFunction(modulejs.state);
|
||||
});
|
||||
|
||||
it('.log() is function', function () {
|
||||
assert.isFunction(modulejs.log);
|
||||
});
|
||||
|
||||
it('._private is object', function () {
|
||||
assert.isObject(modulejs._private);
|
||||
});
|
||||
|
||||
it('has definitions', function () {
|
||||
assert.isAbove(_.keys(modulejs._private.definitions).length, 0);
|
||||
});
|
||||
|
||||
it('has no instances', function () {
|
||||
assert.lengthOfKeys(modulejs._private.instances, 0);
|
||||
});
|
||||
});
|
||||
|
||||
it('.define() is function', function () {
|
||||
|
||||
assert.isFunction(modulejs.define);
|
||||
});
|
||||
|
||||
it('.require() is function', function () {
|
||||
|
||||
assert.isFunction(modulejs.require);
|
||||
});
|
||||
|
||||
it('.state() is function', function () {
|
||||
|
||||
assert.isFunction(modulejs.state);
|
||||
});
|
||||
|
||||
it('.log() is function', function () {
|
||||
|
||||
assert.isFunction(modulejs.log);
|
||||
});
|
||||
|
||||
it('._private is object', function () {
|
||||
|
||||
assert.isObject(modulejs._private);
|
||||
});
|
||||
|
||||
it('has definitions', function () {
|
||||
|
||||
assert.isAbove(_.keys(modulejs._private.definitions).length, 0);
|
||||
});
|
||||
|
||||
it('has no instances', function () {
|
||||
|
||||
assert.lengthOfKeys(modulejs._private.instances, 0);
|
||||
});
|
||||
});
|
||||
|
||||
}());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue