Fixed test to compare to true/false rather than 0/1
This commit is contained in:
@@ -310,11 +310,11 @@ describe('ol.View', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
expect(view.getHints()).to.eql([0, 0]);
|
expect(view.getHints()).to.eql([0, 0]);
|
||||||
expect(view.getInteracting()).to.eql(0);
|
expect(view.getInteracting()).to.eql(false);
|
||||||
|
|
||||||
view.setHint(ol.ViewHint.INTERACTING, 1);
|
view.setHint(ol.ViewHint.INTERACTING, 1);
|
||||||
expect(view.getHints()).to.eql([0, 1]);
|
expect(view.getHints()).to.eql([0, 1]);
|
||||||
expect(view.getInteracting()).to.eql(1);
|
expect(view.getInteracting()).to.eql(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('triggers the change event', function(done) {
|
it('triggers the change event', function(done) {
|
||||||
@@ -325,7 +325,7 @@ describe('ol.View', function() {
|
|||||||
|
|
||||||
view.on('change', function() {
|
view.on('change', function() {
|
||||||
expect(view.getHints()).to.eql([0, 1]);
|
expect(view.getHints()).to.eql([0, 1]);
|
||||||
expect(view.getInteracting()).to.eql(1);
|
expect(view.getInteracting()).to.eql(true);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
view.setHint(ol.ViewHint.INTERACTING, 1);
|
view.setHint(ol.ViewHint.INTERACTING, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user