@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
41 lines (36 loc) • 1.34 kB
text/typescript
import { Expect, ExpectExtends, ExpectFalse } from '../../utils/typetest.util';
import { NotificationTemplateProps } from './NotificationTemplate';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type cases = [
Expect<
ExpectExtends<
NotificationTemplateProps,
{ content: 'Some content'; toastCloseButtonLabel: 'Close'; 'aria-label': 'abc' }
>
>,
Expect<
ExpectExtends<
NotificationTemplateProps,
{ content: 'Some content'; toastCloseButtonLabel: 'Close'; 'aria-labelledby': 'some-id' }
>
>,
Expect<
ExpectExtends<
NotificationTemplateProps,
{
content: 'Some content';
toastCloseButtonLabel: 'Close';
'aria-label': 'abc';
'aria-labelledby': 'some-id';
}
>
>,
ExpectFalse<ExpectExtends<NotificationTemplateProps, { 'aria-label': 'abc' }>>,
ExpectFalse<ExpectExtends<NotificationTemplateProps, { 'aria-labelledby': 'some-id' }>>,
ExpectFalse<
ExpectExtends<NotificationTemplateProps, { 'aria-label': 'abc'; 'aria-labelledby': 'some-id' }>
>,
ExpectFalse<ExpectExtends<NotificationTemplateProps, { content: 'Some content' }>>,
ExpectFalse<ExpectExtends<NotificationTemplateProps, { toastCloseButtonLabel: 'Close' }>>,
ExpectFalse<ExpectExtends<NotificationTemplateProps, Record<string, never>>>
];