diff options
Diffstat (limited to 'spec/spec/text.js')
-rw-r--r-- | spec/spec/text.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec/text.js b/spec/spec/text.js index b5d0b59..a541e98 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.SVGNumber) + expect(text.leading() instanceof SVG.Number) expect(text.leading().valueOf()).toBe(1.3) }) it('sets the leading value of the text with the first argument', function() { @@ -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.SVGNumber).toBeTruthy() + expect(text.dom.leading instanceof SVG.Number).toBeTruthy() expect(text.dom.leading.value).toBe(3) expect(text.dom.leading.unit).toBe('px') }) |