Merge pull request #45 from darkwing/add-js-tests
Add SW tests for 0.1.0
This commit is contained in:
Коммит
9254974b3b
|
@ -97,8 +97,9 @@ describe('tests', function() {
|
|||
|
||||
it('Debug option works properly', function() {
|
||||
// We don't want to muddle up the user's console if they option isn't on
|
||||
wpSwCache.debug = false;
|
||||
console.log = console.warn = sinon.spy();
|
||||
|
||||
wpSwCache.debug = false;
|
||||
wpSwCache.log('Hello');
|
||||
assert.equal(console.log.callCount, 0);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче