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

moduleForComponent and callbacks not working? #37

Closed
rstudner opened this issue Apr 13, 2014 · 2 comments
Closed

moduleForComponent and callbacks not working? #37

rstudner opened this issue Apr 13, 2014 · 2 comments

Comments

@rstudner
Copy link

import { test , moduleForComponent } from 'ember-qunit';

moduleForComponent('dashboard-time-controls', 'Dashboard Time Controls - Refresh Interval Tests', {
    needs: ['component:radio-button']
});

i've tried all sorts of syntax variations.. but nothing seems to work.
both pieces of js source code live in
app/components/dashboard-time-controls.js
app/components/radio-button.js

app/templates/dashboard-time-controls.hbs is what is trying to use radio-button.

when I run localhost:8000/tests I get:

Error: <(subclass of Ember.Component):ember1720> Handlebars error: Could not find property 'radio-button' on object <(subclass of Ember.Component):ember1720>.
    at new Error (native)
    at Error.Ember.Error (http://localhost:8000/vendor/ember/ember.js:910:19)
    at null.<anonymous> (http://localhost:8000/vendor/ember/ember.js:27485:9)
    at Object.eval (eval at <anonymous> (http://localhost:8000/vendor/handlebars/handlebars.js:1945:25), <anonymous>:54:259)
    at http://localhost:8000/vendor/handlebars/handlebars.js:436:33
    at Ember.View.Ember.CoreView.extend.render (http://localhost:8000/vendor/ember/ember.js:23553:16)
    at Ember.CoreView.Ember.Object.extend._renderToBuffer (http://localhost:8000/vendor/ember/ember.js:22491:10)
    at superFunction [as _super] (http://localhost:8000/vendor/ember/ember.js:7723:16)
    at Ember.View.Ember.CoreView.extend._renderToBuffer (http://localhost:8000/vendor/ember/ember.js:24161:23)
    at superWrapper [as _renderToBuffer] (http://localhost:8000/vendor/ember/ember.js:1292:16)
@XinliWang
Copy link

@rstudner Hey, how did you figure out this problem finally? I have the similar issue now.

@rwjblue
Copy link
Member

rwjblue commented Oct 17, 2017

Sorry for letting this linger so long, this issue is quite out of date and likely the underlying problem has been fixed. Initial implementation of the new ember-qunit API (from emberjs/rfcs#232) has landed and will be included in 3.0.0 release soon.

Closing as I do not believe that this issue can be addressed in the current ember-qunit@2 API.

@rwjblue rwjblue closed this as completed Oct 17, 2017
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

3 participants