From 80799864a1c4db1d6ae59b7b5d5434cad999c139 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Tue, 16 Apr 2024 16:48:49 +0300 Subject: [PATCH] chore: use renamed matchers in type tests (#1993) --- type-definitions/ts-tests/covariance.ts | 12 ++++++------ type-definitions/ts-tests/list.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/type-definitions/ts-tests/covariance.ts b/type-definitions/ts-tests/covariance.ts index 6b678d038..b4c01e50e 100644 --- a/type-definitions/ts-tests/covariance.ts +++ b/type-definitions/ts-tests/covariance.ts @@ -39,7 +39,7 @@ test('List covariance', () => { expect(List([new B()])).type.toBe>(); - expect>().type.not.toBeAssignable(List()); + expect>().type.not.toBeAssignableWith(List()); }); test('Map covariance', () => { @@ -47,7 +47,7 @@ test('Map covariance', () => { expect(Map({ b: new B() })).type.toBe>(); - expect>().type.not.toBeAssignable>(); + expect>().type.not.toBeAssignableWith>(); }); test('Set covariance', () => { @@ -55,7 +55,7 @@ test('Set covariance', () => { expect(Set([new B()])).type.toBe>(); - expect>().type.not.toBeAssignable>(); + expect>().type.not.toBeAssignableWith>(); }); test('Stack covariance', () => { @@ -63,7 +63,7 @@ test('Stack covariance', () => { expect(Stack([new B()])).type.toBe>(); - expect>().type.not.toBeAssignable>(); + expect>().type.not.toBeAssignableWith>(); }); test('OrderedMap covariance', () => { @@ -73,7 +73,7 @@ test('OrderedMap covariance', () => { expect(OrderedMap({ b: new B() })).type.toBe>(); - expect>().type.not.toBeAssignable< + expect>().type.not.toBeAssignableWith< OrderedMap >(); }); @@ -83,5 +83,5 @@ test('OrderedSet covariance', () => { expect(OrderedSet([new B()])).type.toBe>(); - expect>().type.not.toBeAssignable>(); + expect>().type.not.toBeAssignableWith>(); }); diff --git a/type-definitions/ts-tests/list.ts b/type-definitions/ts-tests/list.ts index e91ba9332..4a28aca98 100644 --- a/type-definitions/ts-tests/list.ts +++ b/type-definitions/ts-tests/list.ts @@ -17,7 +17,7 @@ test('#constructor', () => { expect>().type.toBeAssignableWith(List()); expect>().type.toBeAssignableWith(List([1, 'a'])); - expect>().type.not.toBeAssignable(List([1, 'a'])); + expect>().type.not.toBeAssignableWith(List([1, 'a'])); }); test('#size', () => {