ui(admin): add "working" React admin ui
This commit is contained in:
parent
d1c7494933
commit
5402584508
199 changed files with 13387 additions and 151 deletions
16
resources/scripts/helpers/splitStringWhitespace.spec.ts
Normal file
16
resources/scripts/helpers/splitStringWhitespace.spec.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import splitStringWhitespace from '@/helpers/splitStringWhitespace';
|
||||
|
||||
describe('@/helpers/splitStringWhitespace.ts', function () {
|
||||
it.each([
|
||||
[ '', [] ],
|
||||
[ 'hello world', [ 'hello', 'world' ] ],
|
||||
[ ' hello world ', [ 'hello', 'world' ] ],
|
||||
[ 'hello123 world 123 $$ s ', [ 'hello123', 'world', '123', '$$', 's' ] ],
|
||||
[ 'hello world! how are you?', [ 'hello', 'world!', 'how', 'are', 'you?' ] ],
|
||||
[ 'hello "foo bar baz" world', [ 'hello', 'foo bar baz', 'world' ] ],
|
||||
[ 'hello "foo \\"bar bar \\" baz" world', [ 'hello', 'foo "bar bar " baz', 'world' ] ],
|
||||
[ 'hello "foo "bar baz" baz" world', [ 'hello', 'foo bar', 'baz baz', 'world' ] ],
|
||||
])('should handle string: %s', function (input, output) {
|
||||
expect(splitStringWhitespace(input)).toStrictEqual(output);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue