How to get jasmine tests to load data and execute in the right order
问题 I'm using Jasmine (2.3.2) and Protractor (2.5.1) for my UI tests. I need to load in data and generate tests for each item from that array. I have a function ( checkItem ) that creates a new describe function for each item and checks certain properties on that object. This is a very simplified version of my code and there are other tests that run before these. If I call checkItem in a describe statement, itemsArr isn't defined yet. So I'm not sure how to get the data loaded and create dynamic