Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 11, 2022
1 parent f0f08d0 commit cc4f0ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/blocks/src/blocks/DocsPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit cc4f0ca

Please sign in to comment.