diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-05 07:52:13 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-05 07:52:13 +0100 |
| commit | dd5f3c463fab336d694f426dcad11a1783590fc9 (patch) | |
| tree | faebf738a9556eaa393371852ed86550d4adf66a /test/bem/_iro-bem-suffix.scss | |
| parent | Fix errors from transition from node-sass to sass (diff) | |
| download | iro-sass-dd5f3c463fab336d694f426dcad11a1783590fc9.tar.gz iro-sass-dd5f3c463fab336d694f426dcad11a1783590fc9.tar.bz2 iro-sass-dd5f3c463fab336d694f426dcad11a1783590fc9.zip | |
Ported from import syntax to modules
Diffstat (limited to 'test/bem/_iro-bem-suffix.scss')
| -rw-r--r-- | test/bem/_iro-bem-suffix.scss | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/test/bem/_iro-bem-suffix.scss b/test/bem/_iro-bem-suffix.scss deleted file mode 100644 index c6ca787..0000000 --- a/test/bem/_iro-bem-suffix.scss +++ /dev/null | |||
| @@ -1,94 +0,0 @@ | |||
| 1 | // sass-lint:disable class-name-format force-element-nesting force-pseudo-nesting mixins-before-declarations | ||
| 2 | |||
| 3 | // | ||
| 4 | // Included test cases: | ||
| 5 | // - /// 1 /// - block suffix | ||
| 6 | // - /// 2 /// - element suffix | ||
| 7 | // - /// 3 /// - modifier suffix | ||
| 8 | // - /// 4 /// - multiple element suffix | ||
| 9 | // | ||
| 10 | |||
| 11 | @include it('iro-bem-suffix') { | ||
| 12 | @include assert('block suffix') { /// 1 /// | ||
| 13 | @include output { | ||
| 14 | @include iro-bem-block('something') { | ||
| 15 | @include iro-bem-suffix('sm') { | ||
| 16 | font-size: 1.5em; | ||
| 17 | } | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | @include expect { | ||
| 22 | .something\@sm { | ||
| 23 | font-size: 1.5em; | ||
| 24 | } | ||
| 25 | } | ||
| 26 | } | ||
| 27 | |||
| 28 | @include assert('element suffix') { /// 2 /// | ||
| 29 | @include output { | ||
| 30 | @include iro-bem-block('something') { | ||
| 31 | @include iro-bem-element('child') { | ||
| 32 | @include iro-bem-suffix('sm') { | ||
| 33 | font-size: 2.5em; | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
| 37 | } | ||
| 38 | |||
| 39 | @include expect { | ||
| 40 | .something__child\@sm { | ||
| 41 | font-size: 2.5em; | ||
| 42 | } | ||
| 43 | } | ||
| 44 | } | ||
| 45 | |||
| 46 | @include assert('modifier suffix') { /// 3 /// | ||
| 47 | @include output { | ||
| 48 | @include iro-bem-block('something') { | ||
| 49 | @include iro-bem-modifier('mod1') { | ||
| 50 | @include iro-bem-suffix('sm') { | ||
| 51 | font-size: 1.75em; | ||
| 52 | } | ||
| 53 | } | ||
| 54 | |||
| 55 | @include iro-bem-element('child') { | ||
| 56 | @include iro-bem-modifier('mod2') { | ||
| 57 | @include iro-bem-suffix('sm') { | ||
| 58 | font-size: 2.75em; | ||
| 59 | } | ||
| 60 | } | ||
| 61 | } | ||
| 62 | } | ||
| 63 | } | ||
| 64 | |||
| 65 | @include expect { | ||
| 66 | .something--mod1\@sm { | ||
| 67 | font-size: 1.75em; | ||
| 68 | } | ||
| 69 | |||
| 70 | .something__child--mod2\@sm { | ||
| 71 | font-size: 2.75em; | ||
| 72 | } | ||
| 73 | } | ||
| 74 | } | ||
| 75 | |||
| 76 | @include assert('multiple element suffix') { /// 4 /// | ||
| 77 | @include output { | ||
| 78 | @include iro-bem-block('something') { | ||
| 79 | @include iro-bem-element('child1', 'child2') { | ||
| 80 | @include iro-bem-suffix('sm') { | ||
| 81 | font-size: 2.5em; | ||
| 82 | } | ||
| 83 | } | ||
| 84 | } | ||
| 85 | } | ||
| 86 | |||
| 87 | @include expect { | ||
| 88 | .something__child1\@sm, | ||
| 89 | .something__child2\@sm { | ||
| 90 | font-size: 2.5em; | ||
| 91 | } | ||
| 92 | } | ||
| 93 | } | ||
| 94 | } | ||
