mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-01 07:48:20 -04:00
Clean code.
This commit is contained in:
parent
c396800dfa
commit
882bf8ae11
17 changed files with 202 additions and 148 deletions
|
@ -13,8 +13,8 @@ describe('module "' + ID + '"', function () {
|
|||
this.xResource = {
|
||||
image: sinon.stub().throws('invalid image request')
|
||||
};
|
||||
this.xResource.image.withArgs('back').returns('/some/path/' + util.uniqId() + '-back.png');
|
||||
this.xResource.image.withArgs('sidebar').returns('/some/path/' + util.uniqId() + '-sidebar.png');
|
||||
this.xResource.image.withArgs('back').returns(util.uniqPath('-back.png'));
|
||||
this.xResource.image.withArgs('sidebar').returns(util.uniqPath('-sidebar.png'));
|
||||
this.xStore = {
|
||||
get: sinon.stub().returns(false),
|
||||
put: sinon.stub()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue