From 21b49700d3effd97aa8751be8f078154d3248d97 Mon Sep 17 00:00:00 2001 From: "matias.ponce" Date: Tue, 5 Sep 2017 09:44:30 -0300 Subject: [PATCH] CommonWrapper accepts ReactElements and strings in contains method --- types/enzyme/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/enzyme/index.d.ts b/types/enzyme/index.d.ts index 878dc2c082..8ebb11ce94 100644 --- a/types/enzyme/index.d.ts +++ b/types/enzyme/index.d.ts @@ -56,7 +56,7 @@ export interface CommonWrapper

{ * Returns whether or not the current wrapper has a node anywhere in it's render tree that looks like the one passed in. * @param node */ - contains(node: ReactElement): boolean; + contains(node: ReactElement | string): boolean; /** * Returns whether or not a given react element exists in the shallow render tree.