File attribute in my configuration file for Karma
files: [ // Program files 'public/js/init.js', // Load mocks directly from bower 'bower_components/angular-mocks/angular-mocks.js', // Fixtures { pattern: 'test/fixtures/*.json', watched: true, served: true, included: false }, // Specs 'test/unit/**/*.spec.*' ]
And one of the devices looks like this: test / fixtures / languages.json
{ "ab":{ "name":"Abkhaz", "nativeName":"ҧ" }, "aa":{ "name":"Afar", "nativeName":"Afaraf" }, "af":{ "name":"Afrikaans", "nativeName":"Afrikaans" } }
How can I load the json mentioned above in a variable in a wait expression?
source share