Skip to content

Commit

Permalink
Fix markdown in matchers docs (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
genetique-techno authored and mantoni committed May 4, 2017
1 parent 4a94c0f commit ad78132
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions docs/release-source/release/matchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Matchers - Sinon.JS
breadcrumb: matchers
---

Matchers can be passed as arguments to `spy.calledOn`, spy.calledWith`, `spy.returned` and the
Matchers can be passed as arguments to `spy.calledOn`, `spy.calledWith`, `spy.returned` and the
corresponding `sinon.assert` functions as well as `spy.withArgs`. Matchers allow to be either more fuzzy or more specific about the expected value.

```javascript
Expand Down Expand Up @@ -97,17 +97,17 @@ Requires the value to be a `Number`.
Requires the value to be a `String`.


#### `sinon.match.object"
#### `sinon.match.object`

Requires the value to be an `Object`.


#### `sinon.match.func"
#### `sinon.match.func`

Requires the value to be a `Function`.


#### `sinon.match.array"
#### `sinon.match.array`

Requires the value to be an `Array`.

Expand All @@ -132,7 +132,7 @@ Requires an `Array` to end with the same values as another one.
Requires an `Array` to contain each one of the values the given array has.


#### `sinon.match.map"
#### `sinon.match.map`

Requires the value to be a `Map`.

Expand All @@ -147,7 +147,7 @@ Requires a `Map` to be deep equal another one.
Requires a `Map` to contain each one of the items the given map has.


#### `sinon.match.set"
#### `sinon.match.set`

Requires the value to be a `Set`.

Expand All @@ -162,28 +162,28 @@ Requires a `Set` to be deep equal another one.
Requires a `Set` to contain each one of the items the given set has.


#### `sinon.match.regexp"
#### `sinon.match.regexp`

Requires the value to be a regular expression.


#### `sinon.match.date"
#### `sinon.match.date`

Requires the value to be a `Date object.
Requires the value to be a `Date` object.


#### `sinon.match.symbol"
#### `sinon.match.symbol`

Requires the value to be a `Symbol.
Requires the value to be a `Symbol`.

*Since `[email protected]`*

#### `sinon.match.same(ref)"
#### `sinon.match.same(ref)`

Requires the value to strictly equal `ref`.


#### `sinon.match.typeOf(type)"
#### `sinon.match.typeOf(type)`

Requires the value to be of the given type, where `type` can be one of
`"undefined"`,
Expand All @@ -199,18 +199,18 @@ Requires the value to be of the given type, where `type` can be one of
`"symbol"`.


#### `sinon.match.instanceOf(type)"
#### `sinon.match.instanceOf(type)`

Requires the value to be an instance of the given `type`.


#### `sinon.match.has(property[, expectation])"
#### `sinon.match.has(property[, expectation])`

Requires the value to define the given `property`.

The property might be inherited via the prototype chain. If the optional expectation is given, the value of the property is deeply compared with the expectation. The expectation can be another matcher.

#### `sinon.match.hasOwn(property[, expectation])"
#### `sinon.match.hasOwn(property[, expectation])`

Same as `sinon.match.has` but the property must be defined by the value itself. Inherited properties are ignored.

Expand Down

0 comments on commit ad78132

Please sign in to comment.