summaryrefslogtreecommitdiffstats
path: root/spec/spec/text.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec/text.js')
-rw-r--r--spec/spec/text.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/spec/text.js b/spec/spec/text.js
index a17009e..b5d0b59 100644
--- a/spec/spec/text.js
+++ b/spec/spec/text.js
@@ -15,7 +15,7 @@ describe('Text', function() {
describe('leading()', function() {
it('returns the leading value of the text without an argument', function() {
- expect(text.leading() instanceof SVG.Number)
+ expect(text.leading() instanceof SVG.SVGNumber)
expect(text.leading().valueOf()).toBe(1.3)
})
it('sets the leading value of the text with the first argument', function() {
@@ -129,7 +129,7 @@ describe('Text', function() {
text.center(321, 567)
var box = text.bbox()
expect(+text.node.getAttribute('x') + box.width / 2).toBeCloseTo(321, 1)
- expect(text.y() + box.height / 2).toBeCloseTo(567)
+ expect(text.y() + box.height / 2).toBeCloseTo(567, 0)
})
})
@@ -283,7 +283,7 @@ describe('Text', function() {
text.setData(JSON.parse(text.attr('svgjs:data')))
expect(text.dom.foo).toBe('bar')
- expect(text.dom.leading instanceof SVG.Number).toBeTruthy()
+ expect(text.dom.leading instanceof SVG.SVGNumber).toBeTruthy()
expect(text.dom.leading.value).toBe(3)
expect(text.dom.leading.unit).toBe('px')
})