Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Tsiolis <tsiolis.g@gmail.com>2018-10-19 12:56:12 +0300
committerGeorge Tsiolis <tsiolis.g@gmail.com>2018-10-23 21:33:12 +0300
commit90a494eed2f1da8227a7e2668524fd19fa76a7ad (patch)
treeef8a06d6480f8ae2bb40d4bee56be5ae37c4e849 /spec/javascripts/flash_spec.js
parentd25a8ed076aea797ad71cbfaf895cfab190bfcfd (diff)
Limit flash notice width on fixed and fluid layout
Diffstat (limited to 'spec/javascripts/flash_spec.js')
-rw-r--r--spec/javascripts/flash_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/flash_spec.js b/spec/javascripts/flash_spec.js
index d7338ee0f66..aecab331ead 100644
--- a/spec/javascripts/flash_spec.js
+++ b/spec/javascripts/flash_spec.js
@@ -172,7 +172,7 @@ describe('Flash', () => {
flash('test');
expect(document.querySelector('.flash-text').className).toBe(
- 'flash-text container-fluid container-limited',
+ 'flash-text container-fluid container-limited limit-container-width',
);
});
@@ -180,7 +180,7 @@ describe('Flash', () => {
document.querySelector('.content-wrapper').className = 'js-content-wrapper';
flash('test');
- expect(document.querySelector('.flash-text').className.trim()).toBe('flash-text');
+ expect(document.querySelector('.flash-text').className.trim()).toContain('flash-text');
});
it('removes element after clicking', () => {