Skip to content

Commit d6b8cc1

Browse files
committed
update tests
1 parent 11d6ca2 commit d6b8cc1

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

packages/render/src/shared/utils/__snapshots__/pretty.spec.ts.snap

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,25 @@ exports[`pretty > should print style properties per-line once they get too wide
11491149
"
11501150
`;
11511151

1152+
exports[`pretty > style attribute formatting > should work with an img element 1`] = `
1153+
"<img
1154+
alt="Stagg Electric Kettle"
1155+
style="
1156+
border-radius:12px;
1157+
border:none;
1158+
display:block;
1159+
object-fit:cover;
1160+
outline:none;
1161+
text-decoration:none;
1162+
width:100%;
1163+
1164+
"
1165+
height="288"
1166+
src="/static/stagg-eletric-kettle.jpg"
1167+
/>
1168+
"
1169+
`;
1170+
11521171
exports[`wrapText() > should work with ending words that are larger than the max line size 1`] = `
11531172
"Want to go
11541173
beyond the

packages/render/src/shared/utils/pretty.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('pretty', () => {
2727

2828
it.only('should work with an img element', () => {
2929
const document =
30-
'<img alt="Stagg Electric Kettle" style="border-radius:12px;border:none;display:block;object-fit:cover;outline:none;text-decoration:none;width:100%;" height="288 src="/static/stagg-eletric-kettle.jpg" />';
30+
'<img alt="Stagg Electric Kettle" style="border-radius:12px;border:none;display:block;object-fit:cover;outline:none;text-decoration:none;width:100%;" height="288" src="/static/stagg-eletric-kettle.jpg" />';
3131
expect(pretty(document, { lineBreak: '\n' })).toMatchSnapshot();
3232
});
3333
});

0 commit comments

Comments
 (0)