diff options
author | Phil Hughes <me@iamphill.com> | 2019-04-12 11:32:05 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-04-12 11:32:05 +0300 |
commit | 45ef6fd77710b29dc3fb1d413eb819ad47f154e5 (patch) | |
tree | 8e9dd1621c81708c7a8511a434274ee27a1edb7d /spec/javascripts/diffs | |
parent | 39aa68b20c112192fe3aa130a72a004a379a080a (diff) |
Fixed fluid layout preference not being respected in diffs
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52916
Diffstat (limited to 'spec/javascripts/diffs')
-rw-r--r-- | spec/javascripts/diffs/components/app_spec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/javascripts/diffs/components/app_spec.js b/spec/javascripts/diffs/components/app_spec.js index 3ce69bc3c20..1aabf3c2132 100644 --- a/spec/javascripts/diffs/components/app_spec.js +++ b/spec/javascripts/diffs/components/app_spec.js @@ -75,6 +75,14 @@ describe('diffs/components/app', () => { expect(wrapper.contains('.container-limited.limit-container-width')).toBe(false); }); + it('does not add container-limiting classes when isFluidLayout', () => { + createComponent({ isFluidLayout: true }, ({ state }) => { + state.diffs.isParallelView = false; + }); + + expect(wrapper.contains('.container-limited.limit-container-width')).toBe(false); + }); + it('displays loading icon on loading', () => { createComponent({}, ({ state }) => { state.diffs.isLoading = true; |