spec/javascripts/src/display/align_spec.js in entityjs-0.4.1 vs spec/javascripts/src/display/align_spec.js in entityjs-0.4.2
- old
+ new
@@ -6,15 +6,15 @@
e = re.e('align circle');
});
it('align hor', function(){
is(e.alignHor(10));
- eq(e.posX, re.sys.sizeX * 0.5 - e.sizeX * 0.5 + 10)
+ eq(e.posX, re.sys.sizeX * 0.5 - e.sizeX * 0.5 + 10 |0)
});
it('align ver', function(){
is(e.alignVer(1));
- eq(e.posY, re.sys.sizeY * 0.5 - e.sizeY * 0.5 + 1)
+ eq(e.posY, re.sys.sizeY * 0.5 - e.sizeY * 0.5 + 1 |0)
});
it('align right', function(){
is(e.alignRight(5));
\ No newline at end of file