Skip to content

Commit

Permalink
Test TextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
lopenchi committed Nov 26, 2024
1 parent 7dd25a0 commit 89ba184
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/native/test/lib/ElementAssertion.test.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import { render } from "@testing-library/react-native";
import { TextInput, View } from "react-native";
import { TextInput } from "react-native";

import { ElementAssertion } from "../../src/lib/ElementAssertion";

import assert, { AssertionError } from "assert";

describe("[Unit] ElementAssertion.test.ts", () => {
describe(".toBeDisabled", () => {
context("when the component is disabled", () => {
context("when the component TextInput is disabled", () => {
it("returns the assertion instance", () => {
const element = render(
<View disabled={true} testID="id">
<TextInput />
</View>,
<TextInput testID="id" editable={false} />,
);
const test = new ElementAssertion(element.getByTestId("id"));

Expand Down

0 comments on commit 89ba184

Please sign in to comment.