We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aebca1d commit d97a269Copy full SHA for d97a269
src/lib/testing-expect.class.ts
@@ -1,3 +1,4 @@
1
+import {} from "jasmine";
2
// @angular-package/type.
3
import { is } from '@angular-package/type';
4
// Type.
@@ -45,13 +46,13 @@ export class TestingExpect {
45
46
e = expectationFailOutput
47
? expect(actual).withContext(expectationFailOutput)
48
: expect(actual)
- ): jasmine.Matchers<typeof actual> {
49
+ ): jasmine.Matchers<ExpectType<T>> {
50
return is.true(this.#not) ? e.not : e;
51
}
52
53
protected expectation<T>(
54
actual: ExpectType<T>,
- callbackfn: (matchers: jasmine.Matchers<typeof actual>) => any,
55
+ callbackfn: (matchers: jasmine.Matchers<ExpectType<T>>) => any,
56
expectationFailOutput?: any,
57
): this {
58
callbackfn && callbackfn(this.expect(actual, expectationFailOutput));
0 commit comments