Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

setFixtures is not defined with jasmine 2.0.0 #164

Closed
vire opened this issue Jan 13, 2014 · 1 comment
Closed

setFixtures is not defined with jasmine 2.0.0 #164

vire opened this issue Jan 13, 2014 · 1 comment

Comments

@vire
Copy link

vire commented Jan 13, 2014

Hi, i am trying to write some Backbone.Marionette tests, and during setting the regions

<script src="../assets/jasmine-jquery/lib/jasmine-jquery.js"></script>

var App = new Backbone.Marionette.Application();
      beforeEach(function() {
        setFixtures("<div id='datamap-content'></div>");
        setFixtures("<div id='datamap-charts'></div>");
        App.addRegions({
          mapRegion: "#datamap-content",
          chartRegion: "#datamap-charts"
        });

        App.start();
      });

and get this error

ReferenceError: setFixtures is not defined

and this in the IDE:

Uncaught TypeError: Cannot read property 'prototype' of undefined   jasmine-jquery.js:487:42
  bindMatcher   jasmine-jquery.js:487:42
  (anonymous function)  jasmine-jquery.js:512:5
  (anonymous function)  jasmine-jquery.js:704:2
@vire
Copy link
Author

vire commented Jan 13, 2014

Everything is fine with jasmine 1.3.1 via bower install jasmine

r4j4h added a commit to r4j4h/jasmine-jquery that referenced this issue May 13, 2014
* commit 'b94ad8741909b8a48521d168a1ae6b742180122e': (77 commits)
  2.0.3
  fix velesin#179
  fix style
  fix toEqual() examples (velesin#176)
  Providing the parameters from jqXHR.fail
  2.0.2
  Update fixture to ignore script tag without src attribute
  Documentation fix
  2.0.1
  Run tests with jquery 2
  Update ajax call to work with jquery 2
  Update dependencies for jasmine v2 (close velesin#166)
  Fix matchers to be in alphabetical order and add toBeInDOM
  Update README docs for v2 (velesin#154)
  v2.0.0 - adds support for jasmine v2 (fix velesin#154, fix velesin#164)
  Update grunt-contrib-jasmine
  Run tests off of jasmine v2.0.0-rc3
  Able to bind events to fixtures
  Pass in window to the self invoking function
  1.7.0
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant