Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix breaking test

  • Loading branch information...
commit d2b939ab953d8d9b691aefe132f85a8b20648a32 1 parent 0ba8188
Rod Vagg authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 test.js
8 test.js
View
@@ -475,7 +475,7 @@ tap.test('test clear() extensibility', function (t) {
tap.test('test iterator() extensibility', function (t) {
var spy = sinon.spy()
- , expectedOptions = { options: 1 }
+ , expectedOptions = { options: 1, reverse: false } // reverse now explicitly set
, test
function Test (location) {
@@ -487,12 +487,12 @@ tap.test('test iterator() extensibility', function (t) {
Test.prototype._iterator = spy
test = new Test('foobar')
- test.iterator(expectedOptions)
+ test.iterator({ options: 1 })
t.equal(spy.callCount, 1, 'got _close() call')
t.equal(spy.getCall(0).thisValue, test, '`this` on _close() was correct')
t.equal(spy.getCall(0).args.length, 1, 'got one arguments')
- t.equal(spy.getCall(0).args[0], expectedOptions, 'got expected options argument')
+ t.deepEqual(spy.getCall(0).args[0], expectedOptions, 'got expected options argument')
t.end()
})
@@ -556,4 +556,4 @@ tap.test('test end() extensibility', function (t) {
t.equal(spy.getCall(0).args.length, 1, 'got one arguments')
t.equal(spy.getCall(0).args[0], expectedCb, 'got expected cb argument')
t.end()
-})
+})
Please sign in to comment.
Something went wrong with that request. Please try again.