Permalink
Browse files

Add test for options

  • Loading branch information...
nvh committed Jul 26, 2016
1 parent dd49a2e commit 7b96385a74e75a4d489be17330183be529a05cf3
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/tests/LayerStatesTest.coffee
@@ -56,6 +56,7 @@ describe "LayerStates", ->
Framer.resetDefaults()
describe "Switch", ->
it "should switch instant", ->
@@ -293,3 +294,12 @@ describe "LayerStates", ->
state: y: 10
previous: x: 300
expect(throwing).to.throw(/You can't override special state 'previous'/)
describe "Options", ->
it "should listen to layer.options", ->
layer = new Layer
layer.options =
time: 4
animation = layer.animateTo
x: 100
animation.options.time.should.equal 4

0 comments on commit 7b96385

Please sign in to comment.