mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
* 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>
23 lines
677 B
JavaScript
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();
|
|
});
|