Gevious
Gevious

Reputation: 3252

Ember App Kit Tests with ember-data

I'm importing ember-data into the public/index.html file, and my application works well. I did notice JSLint complaining that

 'DS' is not defined.

This morning I tried to write some tests, and noticed the testrunner also complaining that

Uncaught ReferenceError: DS is not defined

How to I get around this?

Upvotes: 1

Views: 251

Answers (2)

danb
danb

Reputation: 10379

Do you need a

"predef": [
    "DS",
    ...
]

in your .jshintrc?

Upvotes: 2

Jeremy Green
Jeremy Green

Reputation: 8574

It might be a loading order issue. I think you want to make sure that you include jQuery first, then Ember, then Ember Data, and then finally your App code. Alternatively, it could be that something in index.html is a little screwy and is preventing the script tag for Ember Data from rendering correctly. Any chance you can post a JSBin?

Upvotes: 0

Related Questions