I have installed the latest using bower. "jasmine-jquery": "~2.1.0"
Then I added file entry into my karma.conf
'test/apiMocks/*.json'
i created a simple json file test.json.
Then in my jasmine tests, I have the below config:
jasmine.getJSONFixtures().fixturesPath='base/test/apiMocks';
var data = getJSONFixture('test.json');
console.log('Test json is ' + JSON.stringify(data));
I keep getting parse error, even tho it is valid json.
Json output is:
{
"property1":"value1"
}
SyntaxError: Parse error
at C:/java-projects/track-ui/test/apiMocks/test.json:2
Hi,
I have installed the latest using bower. "jasmine-jquery": "~2.1.0"
Then I added file entry into my karma.conf
i created a simple json file test.json.
Then in my jasmine tests, I have the below config:
I keep getting parse error, even tho it is valid json.
Json output is:
SyntaxError: Parse error at C:/java-projects/track-ui/test/apiMocks/test.json:2
Any clue?