Skip to content

Commit

Permalink
fix: expect helper to have custom error message as optional param (#4082
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kobenguyent authored Dec 22, 2023
1 parent 0341547 commit b4b6dd8
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 64 deletions.
64 changes: 32 additions & 32 deletions docs/helpers/Expect.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,32 @@ Zero-configuration when paired with other helpers like REST, Playwright:
#### Parameters

- `targetData` **any**
- `aboveThan` **any** number | Date
- `customErrorMsg` **any**
- `aboveThan` **any**
- `customErrorMsg` **any?**

### expectBelow

#### Parameters

- `targetData` **any**
- `belowThan` **any** number | Date
- `customErrorMsg` **any**
- `belowThan` **any**
- `customErrorMsg` **any?**

### expectContain

#### Parameters

- `actualValue` **any**
- `expectedValueToContain` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectDeepEqual

#### Parameters

- `actualValue` **any**
- `expectedValue` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectDeepEqualExcluding

Expand All @@ -68,7 +68,7 @@ expects members of two JSON objects are deeply equal excluding some properties
- `actualValue` **any**
- `expectedValue` **any**
- `fieldsToExclude` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectDeepIncludeMembers

Expand All @@ -78,7 +78,7 @@ expects an array to be a superset of another array

- `superset` **any**
- `set` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectDeepMembers

Expand All @@ -88,77 +88,77 @@ expects members of two arrays are deeply equal

- `actualValue` **any**
- `expectedValue` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectEmpty

#### Parameters

- `targetData` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectEndsWith

#### Parameters

- `actualValue` **any**
- `expectedValueToEndWith` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectEqual

#### Parameters

- `actualValue` **any**
- `expectedValue` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectEqualIgnoreCase

#### Parameters

- `actualValue` **any**
- `expectedValue` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectFalse

#### Parameters

- `targetData` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectHasAProperty

#### Parameters

- `targetData` **any**
- `propertyName` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectHasProperty

#### Parameters

- `targetData` **any**
- `propertyName` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectJsonSchema

#### Parameters

- `targetData` **any**
- `jsonSchema` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectJsonSchemaUsingAJV

#### Parameters

- `targetData` **any**
- `jsonSchema` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**
- `ajvOptions` **any** Pass AJV options

### expectLengthAboveThan
Expand All @@ -167,23 +167,23 @@ expects members of two arrays are deeply equal

- `targetData` **any**
- `lengthAboveThan` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectLengthBelowThan

#### Parameters

- `targetData` **any**
- `lengthBelowThan` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectLengthOf

#### Parameters

- `targetData` **any**
- `length` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectMatchesPattern

Expand All @@ -193,83 +193,83 @@ expects a JSON object matches a provided pattern

- `actualValue` **any**
- `expectedPattern` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectMatchRegex

#### Parameters

- `targetData` **any**
- `regex` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectNotContain

#### Parameters

- `actualValue` **any**
- `expectedValueToNotContain` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectNotDeepEqual

#### Parameters

- `actualValue` **any**
- `expectedValue` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectNotEndsWith

#### Parameters

- `actualValue` **any**
- `expectedValueToNotEndWith` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectNotEqual

#### Parameters

- `actualValue` **any**
- `expectedValue` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectNotStartsWith

#### Parameters

- `actualValue` **any**
- `expectedValueToNotStartWith` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectStartsWith

#### Parameters

- `actualValue` **any**
- `expectedValueToStartWith` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectToBeA

#### Parameters

- `targetData` **any**
- `type` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectToBeAn

#### Parameters

- `targetData` **any**
- `type` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**

### expectTrue

#### Parameters

- `targetData` **any**
- `customErrorMsg` **any**
- `customErrorMsg` **any?**
Loading

0 comments on commit b4b6dd8

Please sign in to comment.