8000 Add test for an array of styles · bootstarted/css-js-loader@b8ebeef · GitHub
[go: up one dir, main page]

Skip to content

Commit b8ebeef

Browse files
author
Iyanu-Tomiwa
committed
Add test for an array of styles
1 parent ec2c939 commit b8ebeef

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test/__snapshots__/index.test.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ padding: 18px;
99
"
1010
`;
1111

12+
exports[`format works with an array of javascript styles 1`] = `
13+
"color: #eee;
14+
font-weight: thin;
15+
font-size: 24px;
16+
text-align: center;
17+
padding: 18px;
18+
"
19+
`;
20+
1221
exports[`format works with es6 objects 1`] = `
1322
".TITLE {
1423
color: #eee;

test/index.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jest.mock('loader-utils', () => {
2323

2424
describe('format works with ', ()< 66AF /span> => {
2525
it('a javascript style', () => {
26+
expect(global.cssJsLoader(style)).toMatchSnapshot();
27+
});
28+
29+
it('an array of javascript styles', () => {
2630
expect(global.cssJsLoader([style])).toMatchSnapshot();
2731
});
2832

0 commit comments

Comments
 (0)
0