From daf6ed8cd4f037d4dd9e15c98e4be832515b5a0c Mon Sep 17 00:00:00 2001 From: Mikhail Date: Mon, 29 Oct 2018 15:11:30 +0300 Subject: [PATCH] Add argument to .exists method `.exists()` has 1 optional argument https://airbnb.io/enzyme/docs/api/ShallowWrapper/exists.html --- 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 60262e3d04..0818b4e5ce 100644 --- a/types/enzyme/index.d.ts +++ b/types/enzyme/index.d.ts @@ -101,7 +101,7 @@ export interface CommonWrapper

> { /** * Returns whether or not the current node exists. */ - exists(): boolean; + exists(selector?: EnzymeSelector): boolean; /** * Returns a new wrapper with only the nodes of the current wrapper that don't match the provided selector.