Skip to content

Commit 46e0b76

Browse files
committed
fixup! fixup! fixup! fix: refactor assets, settings/main, pages/index specs to not call AjaxHelpers inside it()
1 parent 9adad92 commit 46e0b76

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cms/static/js/spec/views/assets_spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ function($, sinon, AjaxHelpers, URI, AssetsView, AssetCollection, ViewHelpers) {
6060
collection: collection,
6161
el: $('#asset_table_body')
6262
});
63+
// render() calls afterRender(), which binds the close-button click handler
64+
// against the upload modal already in the fixture DOM (from appendSetFixtures
65+
// above). render() itself issues no XHR (pagingView.render() is a no-op), so
66+
// requests[0] is still the init setPage from new AssetsView() above.
67+
assetsView.render();
6368
requests.currentIndex = 1;
6469
});
6570

0 commit comments

Comments
 (0)