Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
15 lines
557 B
Plaintext
15 lines
557 B
Plaintext
import { describe, it, expect } from 'vitest';
|
|
import { isValidStringID } from './isValidStringID.js';
|
|
describe('isValidStringID', ()=>{
|
|
it('should pass', ()=>{
|
|
expect(isValidStringID('1')).toBe(true);
|
|
expect(isValidStringID('a_b_c')).toBe(true);
|
|
expect(isValidStringID('8cc2df6d-6e07-4da4-be48-5fa747c3b92b')).toBe(true);
|
|
});
|
|
it('should not pass', ()=>{
|
|
expect(isValidStringID('1 2 3')).toBe(false);
|
|
expect(isValidStringID('1@')).toBe(false);
|
|
});
|
|
});
|
|
|
|
//# sourceMappingURL=isValidStringID.spec.js.map |