Can anyone provide me an example in PLUNKER that how to load JSON file for karma/jasmine test.I want to read the data from JSON file for the test cases i am writing.I have b
You can load an external json data file using require
var data = require('./data.json'); console.log(data); // Your test cases goes here and you can use data object