Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

:pencil: - chore

## 1.3.0
- :rocket: added `to satisfy` validation to verify user-defined expectation provided as predicate
```Gherkin
Then I expect '$value' to satisfy '$either(1, 2)'
```
where `$either` is a function
```typescript
function either(...expected) {
return function (actual) {
return expected.includes(actual)
}
}
```

## 1.2.1
- :rocket: added capability to pass `softly` prefix and throw `SoftAssertionError`

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This library supports a variety of validation types, which can all be negated by
- **`match`**: Validates if a string matches a regular expression.
- **`have type`**: Checks the type of a variable (e.g., `string`, `number`, `boolean`).
- **`match schema`**: Validates data against an [ajv](https://www.npmjs.com/package/ajv) schema, which is useful for complex object validation.
- **`satisfy`**: verify user-defined expectation provided as predicate

## Test

Expand Down
Loading