mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-22 01:43:29 +01:00
basic navidrome implementation
This commit is contained in:
16
tests/random_string.test.ts
Normal file
16
tests/random_string.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import randomString from "../src/random_string";
|
||||
|
||||
describe('randomString', () => {
|
||||
it('should produce different strings...', () => {
|
||||
const s1 = randomString()
|
||||
const s2 = randomString()
|
||||
const s3 = randomString()
|
||||
const s4 = randomString()
|
||||
|
||||
expect(s1.length).toEqual(64)
|
||||
|
||||
expect(s1).not.toEqual(s2);
|
||||
expect(s1).not.toEqual(s3);
|
||||
expect(s1).not.toEqual(s4);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user