From db658e491f5ec800183fed2a1f6fa686465bb604 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 14 Aug 2013 11:57:53 -0400 Subject: [PATCH] Correct use of expect with spies --- test/spec/ol/expr/expression.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/spec/ol/expr/expression.test.js b/test/spec/ol/expr/expression.test.js index 0da8bbdd56..e95a7cb9c7 100644 --- a/test/spec/ol/expr/expression.test.js +++ b/test/spec/ol/expr/expression.test.js @@ -784,8 +784,8 @@ describe('ol.expr.register()', function() { ol.expr.register('myFunc', spy); var expr = ol.expr.parse('myFunc(foo, 42)'); expr.evaluate({foo: 'bar'}, ol.expr.lib); - expect(spy.calledOnce); - expect(spy.calledWithExactly('bar', 42)); + expect(spy.calledOnce).to.be(true); + expect(spy.calledWithExactly('bar', 42)).to.be(true); }); it('allows custom functions to be called with custom this obj', function() { @@ -793,9 +793,9 @@ describe('ol.expr.register()', function() { var expr = ol.expr.parse('myFunc(foo, 42)'); var that = {}; expr.evaluate({foo: 'bar'}, ol.expr.lib, that); - expect(spy.calledOnce); - expect(spy.calledWithExactly('bar', 42)); - expect(spy.calledOn(that)); + expect(spy.calledOnce).to.be(true); + expect(spy.calledWithExactly('bar', 42)).to.be(true); + expect(spy.calledOn(that)).to.be(true); }); it('allows overriding existing ol.expr.lib functions', function() {