diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/path.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec/path.js b/spec/spec/path.js index 9503e3b..38ec932 100644 --- a/spec/spec/path.js +++ b/spec/spec/path.js @@ -152,6 +152,13 @@ describe('Path', function() { expect(path.node.getAttribute('d')).toBe('M 0 0') }) }) + + describe('toString()', function() { + it('renders path array correctly to string', function() { + path = path.plot('M 50 60 A 60 60 0 0 0 50 -60 H 100 V 100 L 20 30 C 10 20 30 40 50 60') + expect(path.node.getAttribute('d')).toBe('M 50 60 A 60 60 0 0 0 50 -60 H 100 V 100 L 20 30 C 10 20 30 40 50 60') + }) + }) }) |