Skip to content

Commit f725669

Browse files
committed
test: Fix test case.
1 parent 035e413 commit f725669

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/__test__/index.test.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,31 @@ it('TextareaCodeEditor language="html"', async () => {
6363
}
6464
if (child.type === 'div') {
6565
expect(child.props.style).toEqual({
66+
background: 'none',
67+
border: 0,
68+
boxSizing: 'inherit',
69+
display: 'inherit',
70+
fontFamily: 'inherit',
71+
fontSize: 'inherit',
72+
fontStyle: 'inherit',
73+
fontVariantLigatures: 'inherit',
74+
fontWeight: 'inherit',
75+
letterSpacing: 'inherit',
76+
lineHeight: 'inherit',
77+
margin: 0,
78+
minHeight: 16,
79+
outline: 0,
80+
overflowWrap: 'break-word',
6681
paddingTop: 10,
6782
paddingRight: 10,
6883
paddingBottom: 10,
6984
paddingLeft: 10,
85+
tabSize: 'inherit',
86+
textIndent: 'inherit',
87+
textRendering: 'inherit',
88+
textTransform: 'inherit',
89+
whiteSpace: 'pre-wrap',
90+
wordBreak: 'keep-all',
7091
});
7192
expect(child.props.className).toEqual('w-tc-editor-preview language-html');
7293
expect(typeof child.props.dangerouslySetInnerHTML).toEqual('object');

0 commit comments

Comments
 (0)