(expected: T)
| 144 | } |
| 145 | |
| 146 | toEqual(expected: T) { |
| 147 | const isEqual = this.deepEqual(this.actual, expected); |
| 148 | |
| 149 | if (this.negated) { |
| 150 | if (isEqual) { |
| 151 | throw new Error(`Expected ${JSON.stringify(expected)} to not equal ${JSON.stringify(this.actual)}`); |
| 152 | } |
| 153 | } else { |
| 154 | if (!isEqual) { |
| 155 | throw new Error(`Expected ${JSON.stringify(expected)} but got ${JSON.stringify(this.actual)}`); |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | toBe(expected: T) { |
| 161 | const isEqual = this.actual === expected; |
no test coverage detected