(this: jest.MatcherContext, instance: TestInstance)
| 24 | } |
| 25 | |
| 26 | export function toBeCollapsed(this: jest.MatcherContext, instance: TestInstance) { |
| 27 | checkHostElement(instance, toBeCollapsed, this); |
| 28 | |
| 29 | return { |
| 30 | pass: computeAriaExpanded(instance) === false, |
| 31 | message: () => { |
| 32 | const matcher = matcherHint(`${this.isNot ? '.not' : ''}.toBeCollapsed`, 'instance', ''); |
| 33 | return [ |
| 34 | matcher, |
| 35 | '', |
| 36 | `Received instance is ${this.isNot ? '' : 'not '}collapsed:`, |
| 37 | redent(formatElement(instance), 2), |
| 38 | ].join('\n'); |
| 39 | }, |
| 40 | }; |
| 41 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…