(result, expectation)
| 377 | } |
| 378 | |
| 379 | function assertMatchesExpectation(result, expectation) { |
| 380 | if (expectation instanceof Expectation) { |
| 381 | expectation.assert(result); |
| 382 | } else { |
| 383 | expect(result).to.deep.equal(expectation); |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | class Expectation { |
| 388 | assert(value) {} |
no test coverage detected