diff --git a/lib/blocks/src/blocks/DocsPage.test.ts b/lib/blocks/src/blocks/DocsPage.test.ts index 0e94fcb1d7d2..6acf3c09215f 100644 --- a/lib/blocks/src/blocks/DocsPage.test.ts +++ b/lib/blocks/src/blocks/DocsPage.test.ts @@ -2,8 +2,8 @@ import { extractTitle } from './Title'; describe('defaultTitleSlot', () => { it('splits on last /', () => { - expect(extractTitle({ title: 'a/b/c' } as any)).toBe('c'); - expect(extractTitle({ title: 'a|b' } as any)).toBe('a|b'); - expect(extractTitle({ title: 'a/b/c.d' } as any)).toBe('c.d'); + expect(extractTitle('a/b/c')).toBe('c'); + expect(extractTitle('a|b')).toBe('a|b'); + expect(extractTitle('a/b/c.d')).toBe('c.d'); }); });