Files
notesnook/apps/mobile/__tests__/App-test.js
Ammar Ahmed 4843d1c39e mobile: update mobile app to react-native 0.72.0 (#2814)
* mobile: upgrade to react-native 0.71

* mobile: update to react-native 0.72.0

* mobile: fix release build on android

* mobile: fix editor stuck in loading state

* mobile: fix bootsplash logo in dark mode

* mobile: update patch files

* mobile: cleanup

* mobile: increase delay

* mobile: add logs on upload

* mobile: ensure editor is ready before note loading

* mobile: fix ui

* mobile: fix

* ci: update workflow

* ci: undo workflow changes

---------

Signed-off-by: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com>
2023-06-26 21:50:20 +05:00

23 lines
677 B
JavaScript

/**
* @format
*/
import "react-native";
import { it } from "@jest/globals";
// 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();
});