Permalink
Browse files

Stupid mistake

  • Loading branch information...
nvh committed Feb 1, 2018
1 parent e249eb0 commit 90d9896d66108c4547aec52d2836e2524999648a
Showing with 9 additions and 1 deletion.
  1. +1 −1 framer/SVGPath.coffee
  2. +8 −0 test/tests/SVGPathTest.coffee
@@ -20,7 +20,7 @@ dashoffsetTransform = (value) ->
v = parseFloat(value)
if isNaN(v)
return null
return value
return v

class exports.SVGPath extends SVGBaseLayer
constructor: (path, options) ->
@@ -40,6 +40,14 @@ describe "SVGPath", ->
stroke: '#000'
layer.elements.test.strokeDasharray.should.eql []
expect(layer.elements.test.strokeDashoffset).to.be.null
layer.destroy()

it "should work when the dashOffset is set", ->
layer = new SVGLayer
svg: """<svg><path stroke-dasharray="" stroke-dashoffset="3" id='test' name='path' d='M 0 0 L 100 200'/>"""
stroke: '#000'
layer.elements.test.strokeDashoffset.should.equal 3
layer.destroy()

describe "strokeLength", ->
it "0", ->

0 comments on commit 90d9896

Please sign in to comment.