Skip to content

Commit a97ec67

Browse files
authored
Merge pull request #916 from hasparus/fix-tests
(CI) fix type error in tests
2 parents 076cd7b + 2dae01e commit a97ec67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/theme-provider/test/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ test('renders with custom components', () => {
102102
</ThemeProvider>
103103
)
104104
expect(json).toHaveStyleRule('color', 'tomato')
105-
expect(json.type).toBe('pre')
105+
expect(json!.type).toBe('pre')
106106
})
107107

108108
test('renders global styles', () => {
@@ -197,7 +197,7 @@ test('adds box-sizing: border-box', () => {
197197
})
198198

199199
test('does not add box-sizing: border-box', () => {
200-
const styles = [].slice.call(document.querySelectorAll('style'))
200+
const styles: HTMLStyleElement[] = [].slice.call(document.querySelectorAll('style'))
201201
styles.forEach(style => (style.innerHTML = ''))
202202
const root = render(
203203
<ThemeProvider

0 commit comments

Comments
 (0)