mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 16:19:48 -04:00
Update tests.
This commit is contained in:
parent
18a62ca831
commit
787eae7a80
22 changed files with 113 additions and 161 deletions
|
@ -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 () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue