Question

Whenever I do a loadFixture() call or the test beneath this text I get an error stating:

Frontend should be able to set fixtures.
TypeError: undefined is not a function
TypeError: undefined is not a function
    at jasmine.Fixtures.cleanUp (http://localhost:4567/__spec__/helpers/jasmine-jquery.js:89:5)
    at null.<anonymous> (http://localhost:4567/__spec__/helpers/jasmine-jquery.js:641:27)
    at jasmine.Block.execute (http://localhost:4567/__jasmine__/jasmine.js:1064:17)
    at jasmine.Queue.next_ (http://localhost:4567/__jasmine__/jasmine.js:2096:31)
    at http://localhost:4567/__jasmine__/jasmine.js:2086:18

it("should be able to set fixtures", function() {
  expect(setFixtures).toBeDefined(); // Notice I took out the ()
});

jasmine-jquery seems to be loaded, otherwise I get ReferenceError: setFixtures is not defined as error.

Any clue as to what's going on?

Was it helpful?

Solution

I've found what was wrong. For future reference I'm answering this myself:

My jasmine-jquery loaded before my jquery file. Switching those did the trick.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top