File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,22 @@ define([
2727 // spec files that set up window.course in their own beforeEach.
2828 describe ( 'Group Configurations' , function ( ) {
2929
30+ // Pre-populate the jasmine-fixtures cache for every template used in the inner
31+ // beforeEach blocks below. The outer beforeEach installs sinon.useFakeXMLHttpRequest(),
32+ // which intercepts the synchronous XHR that readFixtures() uses to load .underscore
33+ // files from the Karma server. Calling readFixtures() here — at describe-body level,
34+ // before any beforeEach runs — loads the files over real XHR and caches the results.
35+ // Subsequent readFixtures() calls inside beforeEach then return from cache without
36+ // making a new (intercepted) request.
37+ readFixtures (
38+ 'group-configuration-details.underscore' ,
39+ 'group-configuration-editor.underscore' ,
40+ 'group-edit.underscore' ,
41+ 'list.underscore' ,
42+ 'content-group-editor.underscore' ,
43+ 'partition-group-details.underscore'
44+ ) ;
45+
3046 var requests , xhrFactory ;
3147 var SELECTORS = {
3248 detailsView : '.group-configuration-details' ,
You can’t perform that action at this time.
0 commit comments