generated from Seekra/repository-template
style: format code using Prettier
This commit is contained in:
@@ -47,15 +47,24 @@ describe('settingsPage', () => {
|
||||
{ path: 'a1.#b.c/', expected: ['a1', 'b', 'c'] },
|
||||
{ path: 'a-1.#b.c/', expected: ['a-1', 'b', 'c'] },
|
||||
{ path: 'a-1.b@.c', expected: ['a-1', 'b', 'c'] },
|
||||
{ path: '....@a/#...)!&§[b.#§c..d....', expected: ['a', 'b', 'c', 'd'] },
|
||||
{ path: '....@a/#...)!&§[b.#§c..dä....', expected: ['a', 'b', 'c', 'd'] },
|
||||
{ path: '..,...~..@a/#.+..)!&§[b.#§c..dä..)..', expected: ['a', 'b', 'c', 'd'] },
|
||||
{
|
||||
path: '....@a/#...)!&§[b.#§c..d....',
|
||||
expected: ['a', 'b', 'c', 'd'],
|
||||
},
|
||||
{
|
||||
path: '....@a/#...)!&§[b.#§c..dä....',
|
||||
expected: ['a', 'b', 'c', 'd'],
|
||||
},
|
||||
{
|
||||
path: '..,...~..@a/#.+..)!&§[b.#§c..dä..)..',
|
||||
expected: ['a', 'b', 'c', 'd'],
|
||||
},
|
||||
{ path: 'a.@.b', expected: ['a', 'b'] },
|
||||
{ path: 1, expected: [] },
|
||||
{ path: false, expected: [] },
|
||||
{ path: true, expected: [] },
|
||||
{ path: null, expected: [] },
|
||||
{ path: undefined, expected: [] }
|
||||
{ path: undefined, expected: [] },
|
||||
])('returns $expected', ({ path, expected }) => {
|
||||
expect(getSettingsPagePathSegments(path)).toStrictEqual(expected);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user