Files
notesnook/apps/mobile/__tests__/App-test.js
2022-08-27 15:23:11 +05:00

22 lines
641 B
JavaScript

/**
* @format
*/
import "react-native";
// Note: test renderer must be required after react-native.
import renderer from "react-test-renderer";
import Heading from "../app/components/ui/typography/heading";
import Paragraph from "../app/components/ui/typography/paragraph";
it("Heading renders correctly", (done) => {
let instance = renderer.create(<Heading>Heading</Heading>);
expect(instance.root.props.children).toBe("Heading");
done();
});
it("Paragraph renders correctly", (done) => {
let instance = renderer.create(<Paragraph>Paragraph</Paragraph>);
expect(instance.root.props.children).toBe("Paragraph");
done();
});