Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test fails on "Layer Shadow Properties should animate shadows through a shadow property" #583

Open
RyLaney opened this issue Jul 28, 2018 · 0 comments

Comments

@RyLaney
Copy link

RyLaney commented Jul 28, 2018

running make test.
expected result - all tests pass
actual result:

  1. Layer Shadow Properties should animate shadows through a shadow property:
    Uncaught AssertionError: expected 0.5 to be below 0.5 (file:///Users/ryanlaney/Projects/2018/Framer/test/phantomjs/tests.js:357)

failing test does not have an initial state on blur or color and does not have an animation on color

index 79bda7a..af565cf 100644
--- a/test/tests/LayerTest.coffee
+++ b/test/tests/LayerTest.coffee
@@ -895,9 +895,12 @@ describe "Layer", ->
 
                it "should animate shadows through a shadow property", (done) ->
                        l = new Layer
+                       l.shadow1.blur = 0
+                       l.shadow1.color = "rgba(0, 0, 0, 0.5)"
                        a = l.animate
                                shadow1:
                                        blur: 100
+                                       color: "rgba(0, 0, 0, 0.25)"
                        Utils.delay a.time / 2, ->
                                l.shadow1.color.a.should.be.above 0
                                l.shadow1.color.a.should.be.below 0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant