mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 00:08:19 -04:00
Remove version from settings.
This commit is contained in:
parent
95f087cfd6
commit
17b5d4dfaa
7 changed files with 28 additions and 31 deletions
|
@ -2,7 +2,7 @@
|
|||
'use strict';
|
||||
|
||||
var ID = 'main/info';
|
||||
var DEPS = ['$', 'config', 'core/server'];
|
||||
var DEPS = ['$', 'config', 'core/resource', 'core/server'];
|
||||
|
||||
describe('module \'' + ID + '\'', function () {
|
||||
|
||||
|
@ -16,6 +16,9 @@ describe('module \'' + ID + '\'', function () {
|
|||
},
|
||||
options: {}
|
||||
};
|
||||
this.xResource = {
|
||||
image: sinon.stub()
|
||||
};
|
||||
this.xServer = {
|
||||
request: sinon.stub()
|
||||
};
|
||||
|
@ -24,7 +27,7 @@ describe('module \'' + ID + '\'', function () {
|
|||
|
||||
this.xServer.request.reset();
|
||||
|
||||
return this.definition.fn($, this.xConfig, this.xServer);
|
||||
return this.definition.fn($, this.xConfig, this.xResource, this.xServer);
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -80,6 +83,14 @@ describe('module \'' + ID + '\'', function () {
|
|||
assert.isUndefined(instance);
|
||||
});
|
||||
|
||||
it('adds HTML #support to #content', function () {
|
||||
|
||||
this.applyFn();
|
||||
assert.lengthOf($('#content > #support'), 1);
|
||||
assert.lengthOf($('#support > .paypal'), 1);
|
||||
assert.lengthOf($('.paypal > form'), 1);
|
||||
});
|
||||
|
||||
it('adds HTML #login-wrapper to #content', function () {
|
||||
|
||||
this.applyFn();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue