Skip to content

Commit

Permalink
alphasort, remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrie Morrison committed Jul 14, 2022
1 parent fbe0de5 commit d073b4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 41 deletions.
24 changes: 12 additions & 12 deletions packages/atomizer/src/blendmodes.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module.exports = {
'n': 'normal',
'm': 'multiply',
's': 'screen',
'o': 'overlay',
'd': 'darken',
'l': 'lighten',
'cd': 'color-dodge',
'c': 'color',
'cb': 'color-burn',
'hl': 'hard-light',
'sl': 'soft-light',
'cd': 'color-dodge',
'd': 'darken',
'di': 'difference',
'e': 'exclusion',
'h': 'hue',
'sa': 'saturation',
'c': 'color',
'lu': 'luminosity'
'hl': 'hard-light',
'l': 'lighten',
'lu': 'luminosity',
'm': 'multiply',
'n': 'normal',
'o': 'overlay',
's': 'saturation',
'sc': 'screen',
'sl': 'soft-light'
};
29 changes: 0 additions & 29 deletions packages/atomizer/tests/atomizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1302,33 +1302,4 @@ describe('Atomizer()', function () {
]);
});
});
describe('Blend modes', function () {
it ('Supports blend modes', function () {
const atomizer = new Atomizer();
const config = {
classNames: [
'Bgbm(n)',
'Mbm(s)',
'foo_Bgbm(h)',
'bar_Mbm(sa)'
]
};
const expected = [
'.Bgbm\\(n\\) {',
' background-blend-mode: normal;',
'}',
'.foo .foo_Bgbm\\(h\\) {',
' background-blend-mode: hue;',
'}',
'.Mbm\\(s\\) {',
' mix-blend-mode: screen;',
'}',
'.bar .bar_Mbm\\(sa\\) {',
' mix-blend-mode: saturation;',
'}\n'
].join('\n');
const result = atomizer.getCss(config);
expect(result).to.equal(expected);
});
});
});

0 comments on commit d073b4b

Please sign in to comment.