MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / ShouldAssertion

Interface ShouldAssertion

packages/testlab/should-as-function.d.ts:30–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28/* eslint-disable @typescript-eslint/unified-signatures */
29
30interface ShouldAssertion {
31 // basic grammar
32 a: ShouldAssertion;
33 an: ShouldAssertion;
34 and: ShouldAssertion;
35 be: ShouldAssertion;
36 has: ShouldAssertion;
37 have: ShouldAssertion;
38 is: ShouldAssertion;
39 it: ShouldAssertion;
40 with: ShouldAssertion;
41 which: ShouldAssertion;
42 the: ShouldAssertion;
43 of: ShouldAssertion;
44 not: ShouldAssertion;
45
46 // chai-like expect().to
47 to: ShouldAssertion;
48
49 // validators
50 arguments(): ShouldAssertion;
51 empty(): ShouldAssertion;
52 ok(): ShouldAssertion;
53 true(): ShouldAssertion;
54 false(): ShouldAssertion;
55 NaN(): ShouldAssertion;
56 Infinity(): ShouldAssertion;
57 Array(): ShouldAssertion;
58 Object(): ShouldAssertion;
59 String(): ShouldAssertion;
60 Boolean(): ShouldAssertion;
61 Number(): ShouldAssertion;
62 Error(): ShouldAssertion;
63 Function(): ShouldAssertion;
64 Date(): ShouldAssertion;
65 Class(): ShouldAssertion;
66 Undefined(): ShouldAssertion;
67 Null(): ShouldAssertion;
68 Promise(): ShouldAssertion;
69 generator(): ShouldAssertion;
70 iterable(): ShouldAssertion;
71 iterator(): ShouldAssertion;
72 eql(expected: any, description?: string): ShouldAssertion;
73 equal(expected: any, description?: string): ShouldAssertion;
74 equalOneOf(...values: any[]): ShouldAssertion;
75 within(start: number, finish: number, description?: string): ShouldAssertion;
76 approximately(
77 value: number,
78 delta: number,
79 description?: string,
80 ): ShouldAssertion;
81 type(expected: any, description?: string): ShouldAssertion;
82 instanceof(constructor: Function, description?: string): ShouldAssertion;
83 above(n: number, description?: string): ShouldAssertion;
84 below(n: number, description?: string): ShouldAssertion;
85 aboveOrEqual(n: number, description?: string): ShouldAssertion;
86 greaterThanOrEqual(n: number, description?: string): ShouldAssertion;
87 belowOrEqual(n: number, description?: string): ShouldAssertion;

Calls

no outgoing calls

Tested by

no test coverage detected