(obj: Input)
| 10 | |
| 11 | it('should work with symbols', () => { |
| 12 | const fn1 = (obj: Input) => { |
| 13 | if (isMatching({ [symbolA]: { [symbolB]: 'foo' } }, obj)) { |
| 14 | const value = obj[symbolA][symbolB]; |
| 15 | type t = Expect<Equal<typeof value, 'foo'>>; |
| 16 | } else { |
| 17 | throw new Error('Expected obj to match the foo pattern!'); |
| 18 | } |
| 19 | }; |
| 20 | |
| 21 | const fn2 = (obj: Input) => { |
| 22 | if (isMatching({ [symbolA]: { [symbolB]: 'bar' } }, obj)) { |
no test coverage detected