Update tests.

This commit is contained in:
Lars Jung 2015-06-14 15:24:05 +02:00
parent 18a62ca831
commit 787eae7a80
22 changed files with 113 additions and 161 deletions

View file

@ -10,19 +10,19 @@ describe('module \'' + ID + '\'', function () {
this.definition = modulejs._private.definitions[ID];
this.xRootName = util.uniqId();
this.xRootName = uniq.id();
this.xTypes = {
getType: sinon.stub().returns(util.uniqId())
getType: sinon.stub().returns(uniq.id())
};
this.xEvent = util.uniqObj();
this.xEvent = uniq.obj();
this.xSettings = {
rootHref: util.uniqPath('/' + this.xRootName + '/')
rootHref: uniq.path('/' + this.xRootName + '/')
};
this.xServer = util.uniqObj();
this.xServer = uniq.obj();
this.xLocation = {
forceEncoding: sinon.stub().returnsArg(0),
getDomain: sinon.stub().returns(util.uniqId()),
getAbsHref: sinon.stub().returns(util.uniqId())
getDomain: sinon.stub().returns(uniq.id()),
getAbsHref: sinon.stub().returns(uniq.id())
};
this.applyFn = function () {