Skip to content

Commit

Permalink
fixed spy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage committed Nov 9, 2015
1 parent 63efa9e commit 4dea77c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/spy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
assert(spy.set.calledOnce);
assert(spy.set.calledWith(42));

assert.equals(object.test, 42);
assert.equals(object.test, 84);
assert.equals(object.property, 84);
},

Expand All @@ -268,15 +268,15 @@
return this.property;
},
set test(value) {
this.property = value;
this.property = value * 2;
}
};
var spy = sinon.spy(object, "test", ["get", "set"]);

object.test = 42;
assert(spy.set.calledOnce);

assert.equals(object.test, 42);
assert.equals(object.test, 84);
assert(spy.get.calledOnce);
},

Expand Down

0 comments on commit 4dea77c

Please sign in to comment.