aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/line.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/spec/line.js b/spec/spec/line.js
index 870ac92..b49d0e1 100644
--- a/spec/spec/line.js
+++ b/spec/spec/line.js
@@ -99,6 +99,16 @@ describe('Line', function() {
})
})
+ describe('plot()', function() {
+ it('should update the start and end points', function() {
+ line.plot(100,200,300,400)
+ expect(line.node.getAttribute('x1')).toBe('100')
+ expect(line.node.getAttribute('y1')).toBe('200')
+ expect(line.node.getAttribute('x2')).toBe('300')
+ expect(line.node.getAttribute('y2')).toBe('400')
+ })
+ })
+
})