summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/text.js2
-rw-r--r--spec/spec/textpath.js5
2 files changed, 1 insertions, 6 deletions
diff --git a/spec/spec/text.js b/spec/spec/text.js
index 5ec9640..0d72a91 100644
--- a/spec/spec/text.js
+++ b/spec/spec/text.js
@@ -82,7 +82,7 @@ describe('Text', function() {
describe('move()', function() {
it('should set the x and y position', function() {
text.move(123,456)
- expect(text.lines[0].node.getAttribute('x')).toBe('123')
+ expect(text.node.getAttribute('x')).toBe('123')
expect(text.node.getAttribute('y')).toBe('456')
})
})
diff --git a/spec/spec/textpath.js b/spec/spec/textpath.js
index 4645e37..286b07e 100644
--- a/spec/spec/textpath.js
+++ b/spec/spec/textpath.js
@@ -24,11 +24,6 @@ describe('TextPath', function() {
it('stores a reference to the textPath', function() {
expect(text.path(data).textPath instanceof SVG.TextPath).toBe(true)
})
- it('creates a plot() method on the text object', function() {
- expect(typeof text.plot).toBe('undefined')
- text.path(data)
- expect(typeof text.plot).toBe('function')
- })
})
}) \ No newline at end of file