Skip to content

Commit 0f188a3

Browse files
committed
fixup! fix: refactor remaining CMS specs to not call AjaxHelpers inside it()
1 parent b3ccfe7 commit 0f188a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cms/static/js/spec/views/unit_outline_spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ function($, sinon, AjaxHelpers, TemplateHelpers, ViewHelpers, ViewUtils,
66
'use strict';
77

88
describe('UnitOutlineView', function() {
9+
// Preload before beforeEach installs fake XHR, so readFixtures uses real XHR
10+
// and the result is cached. See group_configuration_spec.js for full explanation.
11+
readFixtures('unit-outline.underscore');
12+
913
var createUnitOutlineView, createMockXBlockInfo,
1014
requests, xhrFactory, model, unitOutlineView;
1115

0 commit comments

Comments
 (0)