(function () { 'use strict'; var ID = 'view/viewmode'; var DEPS = ['_', '$', 'core/event', 'core/resource', 'core/settings', 'core/store']; describe('module "' + ID + '"', function () { before(function () { this.definition = modulejs._private.definitions[ID]; this.xSettings = { view: {} }; this.xResource = { image: sinon.stub().returns(util.uniqPath('-image.png')) }; this.xStore = { get: sinon.stub(), put: sinon.stub() }; this.xEvent = { sub: sinon.stub() }; this.applyFn = function () { this.xResource.image.reset(); this.xStore.get.reset(); this.xStore.put.reset(); this.xEvent.sub.reset(); return this.definition.fn(_, $, this.xEvent, this.xResource, this.xSettings, this.xStore); }; }); after(function () { util.restoreHtml(); }); beforeEach(function () { util.restoreHtml(); $('