Is Jasmine's beforeEach synchronous?
问题 If you have multiple beforeEach 's, will they always run one after another? beforeEach(function() {}); beforeEach(function() {}); beforeEach(function() {}); beforeEach(function() {}); beforeEach(function() {}); It seems that they will. I tried testing it with my code: describe('Directive: Statement', function() { var el, scope, statements; beforeEach(module('simulatedSelves')); beforeEach(module('templates')); beforeEach(inject(function($compile, $rootScope) { console.log(1); scope =