From cc4f0ca630fcea7800efa6ed56b6becd5d775379 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Mon, 11 Jul 2022 10:22:14 +1000 Subject: [PATCH] Update tests --- lib/blocks/src/blocks/DocsPage.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); }); });