You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ $ npx stest
142
142
|`toBeTypeOf(type: any)`| Check if actual is type of expected. Example: `assertThat('a').toBeTypeOf('string')`, `assertThat(TypeError).toBeTypeOf(Error)`|
143
143
|`toHaveProperty(property: any)`| Check if actual has expected property |
144
144
|`toHavePropertyEqual(property: any, value: any)`| Check if actual has expected property which is equal to value |
145
-
|`toHaveProperties(properties: any[])`| Check if actual has all of expected properties |
145
+
|`toHaveAllProperties(properties: any[])`| Check if actual has all of expected properties |
146
146
|`toHaveAnyProperties(properties: any[])`| Check if actual has any of expected properties |
147
147
|`toThrow(expectedError?: ErrorConstructor, ...args: any[])`| Check if actual throw an error or expected error. Also you can provide arguments for actual function |
148
148
|`toNotThrow(expectedError?: ErrorConstructor, ...args: any[])`| Check if actual do not throw an error or do not throw an error provided to as 'expectedError' param. Also you can provide arguments for actual function |
@@ -185,10 +185,27 @@ $ npx stest
185
185
#### Spy API
186
186
187
187
Create a new spy by `spyOn(instance: any, methodName: string)` function:
0 commit comments