Skip to content

Commit

Permalink
Fix AbstractClass test to not needlessly use expectAssignable (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorade committed Mar 23, 2023
1 parent c5743c9 commit 7a76a6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test-d/abstract-class.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {expectAssignable, expectError} from 'tsd';
import {expectError} from 'tsd';
import type {AbstractConstructor, AbstractClass} from '../index';

abstract class Foo {
Expand Down Expand Up @@ -31,10 +31,10 @@ function assertWithBar() {
// eslint-disable-next-line @typescript-eslint/no-empty-function
barMethod() {}
}
expectAssignable(functionRecevingAbsClass<Bar>(withBar(Bar)));
expectAssignable(functionRecevingAbsClass<Bar>(CorrectConcreteExtendedBar));
functionRecevingAbsClass<Bar>(withBar(Bar));
functionRecevingAbsClass<Bar>(CorrectConcreteExtendedBar);
}

expectAssignable(functionRecevingAbsClass(Foo));
functionRecevingAbsClass(Foo);
expectError(functionRecevingAbsClass<Bar>(Foo));
assertWithBar();

0 comments on commit 7a76a6f

Please sign in to comment.