From 7de58334ac8ceaf8d0d558f3c83b5ff60c5684d9 Mon Sep 17 00:00:00 2001 From: Nicholas Boll Date: Wed, 13 Dec 2017 15:34:25 -0700 Subject: [PATCH 1/2] fix(chai-jquery): Fix assertions that deviate from other assertions This was causing an issue with `chai-enzyme` types. I'm not sure why these 4 assertion methods deviated from the style of the rest of assertion methods --- types/chai-jquery/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/chai-jquery/index.d.ts b/types/chai-jquery/index.d.ts index e1628f1743..a5ed7aadbd 100644 --- a/types/chai-jquery/index.d.ts +++ b/types/chai-jquery/index.d.ts @@ -10,10 +10,10 @@ declare namespace Chai { interface Assertion { - attr: (name: string, value?: string) => Assertion; - prop: (name: string, value?: any) => Assertion; - css: (name: string, value?: string) => Assertion; - data: (name: string, value?: string) => Assertion; + attr(name: string, value?: string): Assertion; + prop(name: string, value?: any): Assertion; + css(name: string, value?: string): Assertion; + data(name: string, value?: string): Assertion; class(className: string): Assertion; id(id: string): Assertion; html(html: string): Assertion; From 9fe945225791c5c16b92ba75b19bbc561aba01dd Mon Sep 17 00:00:00 2001 From: Nicholas Boll Date: Mon, 18 Dec 2017 15:20:31 -0700 Subject: [PATCH 2/2] fix(chai-jquery): Fix assertions that deviate from other assertions --- types/chai-jquery/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/chai-jquery/index.d.ts b/types/chai-jquery/index.d.ts index a5ed7aadbd..e84a1ec272 100644 --- a/types/chai-jquery/index.d.ts +++ b/types/chai-jquery/index.d.ts @@ -20,11 +20,11 @@ declare namespace Chai { text(text: string): Assertion; value(text: string): Assertion; descendants(selector: string): Assertion; - visible: Assertion; - hidden: Assertion; - selected: Assertion; - checked: Assertion; - disabled: Assertion; + visible(): Assertion; + hidden(): Assertion; + selected(): Assertion; + checked(): Assertion; + disabled(): Assertion; (selector: string): Assertion; } }