test: Added expect(spy).to.be.called() syntactic sugar

This commit is contained in:
Tobias Bieniek
2013-03-13 17:18:23 +01:00
parent 93577bd335
commit 47261124fc
5 changed files with 32 additions and 27 deletions

View File

@@ -198,7 +198,7 @@ describe('ol.Map', function() {
// confirm that the center is somewhere between origin and destination
// after a short delay
setTimeout(function() {
expect(o.callback.called).to.be.ok();
expect(o.callback).to.be.called();
var loc = map.getView().getCenter();
expect(loc.x).not.to.eql(origin.x);
expect(loc.y).not.to.eql(origin.y);