mirror of
https://github.com/plankanban/planka.git
synced 2025-12-25 09:15:00 +03:00
Add test libs, update dependencies
This commit is contained in:
11
client/src/utils/local-id.test.js
Normal file
11
client/src/utils/local-id.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { isLocalId } from './local-id';
|
||||
|
||||
describe('isLocalId', () => {
|
||||
test('is valid', () => {
|
||||
expect(isLocalId('local:1234567890')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('is invalid', () => {
|
||||
expect(isLocalId('1234567890')).toBeFalsy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user