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

slider is undefined in integration test, leading to failure with "Cannot read property 'on'/'off' of undefined" #91

Open
arnebit opened this issue Jun 30, 2020 · 0 comments

Comments

@arnebit
Copy link

arnebit commented Jun 30, 2020

I just added this component to an ember 3.12 app and now the integration test for the component using the range-slider fails:

  1. TypeError: Cannot read property 'on' of undefined
    at range-slider.js:75
    at Array.forEach ()
    at Class.setup (range-slider.js:71)
    at Class.didInsertElement (range-slider.js:50)
    at Class.trigger (core_view.js:69)
    at Class.superWrapper [as trigger] (utils.js:365)
    at CurlyComponentManager.didCreate (glimmer.js:5664)
    at Transaction.commit (runtime.js:3203)
    at Environment$1.commit (runtime.js:3298)
    at Environment$1.commit (glimmer.js:4712)

  2. (the actually present assertion in the near-dummy test passes)

  3. TypeError: Cannot read property 'off' of undefined
    at Class.teardown (http://localhost:4200/assets/vendor.js:280722:14)
    at Class.willDestroyElement (http://localhost:4200/assets/vendor.js:280717:12)
    at Class.trigger (http://localhost:4200/assets/vendor.js:60822:23)
    at Class.superWrapper [as trigger] (http://localhost:4200/assets/vendor.js:58181:22)
    at ComponentStateBucket.destroy (http://localhost:4200/assets/vendor.js:33130:19)
    [...]

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