Remove version from settings.

This commit is contained in:
Lars Jung 2015-05-14 14:50:51 +02:00
parent 95f087cfd6
commit 17b5d4dfaa
7 changed files with 28 additions and 31 deletions

View file

@ -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();