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

General usage questions #273

Open
parky128 opened this issue Nov 30, 2015 · 0 comments
Open

General usage questions #273

parky128 opened this issue Nov 30, 2015 · 0 comments

Comments

@parky128
Copy link

I have just started using this library in my project and so far have some mock data being returned as per below in one of my specs:

beforeEach(function() {
    jasmine.getJSONFixtures().fixturesPath='base/mocks';
    var mockData = jasmine.getJSONFixtures().load('someData.json');
    someData= mockData['someData.json'];
  });

I was wondering, can the fixturesPath be set globally for all specs so I don't have to add this in for each spec file?

Also, if I call load() on the fixtures singleton like in the example above, does that mean that json object is available in other tests located in different spec files?

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