diff options
Diffstat (limited to 'remoting/webapp/unittests/base_unittest.js')
-rw-r--r-- | remoting/webapp/unittests/base_unittest.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/remoting/webapp/unittests/base_unittest.js b/remoting/webapp/unittests/base_unittest.js index 288ff91..a5a6a6f 100644 --- a/remoting/webapp/unittests/base_unittest.js +++ b/remoting/webapp/unittests/base_unittest.js @@ -22,14 +22,14 @@ test('mix(dest, src) should assert if properties are overwritten', var src = { a: 'a', b: 'b'}; var dest = { a: 'a'}; - sinon.$setupStub(base.debug, 'assert'); + sinon.stub(base.debug, 'assert'); try { base.mix(dest, src); } catch (e) { } finally { sinon.assert.called(base.debug.assert); - base.debug.assert.$testStub.restore(); + $testStub(base.debug.assert).restore(); } }); @@ -244,13 +244,13 @@ test('raiseEvent() should not invoke listeners of a different event', test('raiseEvent() should assert when undeclared events are raised', function() { - sinon.$setupStub(base.debug, 'assert'); + sinon.stub(base.debug, 'assert'); try { source.raiseEvent('undefined'); } catch (e) { } finally { sinon.assert.called(base.debug.assert); - base.debug.assert.$testStub.restore(); + $testStub(base.debug.assert).restore(); } }); |