]> source.dussan.org Git - svg.js.git/commitdiff
fix travis test
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Tue, 22 Jan 2019 20:35:56 +0000 (21:35 +0100)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Tue, 22 Jan 2019 20:35:56 +0000 (21:35 +0100)
spec/spec/text.js

index f1b01017df2c11eb31de8d65dc9f14cc5d25bcac..0bef0d1a8def6c9830123af4811f2c1911b56b2d 100644 (file)
@@ -122,8 +122,8 @@ describe('Text', function() {
     it('sets the cx and cy position', function() {
       text.center(321, 567)
       var box = text.bbox()
-      expect(text.bbox().cx).toBeCloseTo(321)
-      expect(text.bbox().cy).toBeCloseTo(567)
+      expect(text.bbox().cx).toBeCloseTo(321, 1)
+      expect(text.bbox().cy).toBeCloseTo(567, 1)
     })
   })