Skip to content

Commit

Permalink
Fix coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Jan 11, 2022
1 parent d642f82 commit 706767a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import * as TestRenderer from "react-test-renderer";
import { Text } from "react-native";
import { Text, View } from "react-native";
import { Swipeable } from "react-native-gesture-handler";
import { Card } from ".";

Expand Down Expand Up @@ -66,6 +66,12 @@ test(`renders as expected when allowing swiping`, () => {
}),
});

expect(
(renderer.toTree()?.rendered as TestRenderer.ReactTestRendererTree).props[
`renderLeftActions`
]()
).toEqual(<View style={{ width: `100%` }} />);

expect(pop).not.toHaveBeenCalled();
expect(onBack).not.toHaveBeenCalled();
expect(
Expand Down

0 comments on commit 706767a

Please sign in to comment.