mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-21 09:17:30 +08:00
Update
This commit is contained in:
12
components/__tests__/ThemedText-test.tsx
Normal file
12
components/__tests__/ThemedText-test.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
|
||||
import {ThemedText} from '../ThemedText';
|
||||
|
||||
it(`renders correctly`, () => {
|
||||
const tree = renderer
|
||||
.create(<ThemedText>Snapshot test!</ThemedText>)
|
||||
.toJSON();
|
||||
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
Reference in New Issue
Block a user