(
overrides: Partial<Pick<PluginConfig, 'groups' | 'context'>> = {},
)
| 6 | |
| 7 | describe('axeCategories', () => { |
| 8 | const createMockPlugin = ( |
| 9 | overrides: Partial<Pick<PluginConfig, 'groups' | 'context'>> = {}, |
| 10 | ): Pick<PluginConfig, 'groups' | 'context'> => ({ |
| 11 | groups: [ |
| 12 | { slug: 'aria', title: 'ARIA', refs: [] }, |
| 13 | { slug: 'color', title: 'Color & Contrast', refs: [] }, |
| 14 | ], |
| 15 | context: { urlCount: 1, weights: { 1: 1 } }, |
| 16 | ...overrides, |
| 17 | }); |
| 18 | |
| 19 | it('should create accessibility category with all groups', () => { |
| 20 | expect(axeCategories(createMockPlugin())).toEqual([ |
no outgoing calls
no test coverage detected