Better describe generateClientId test.
This commit is contained in:
parent
fdc57ba587
commit
1eea9d022c
@ -4,7 +4,7 @@ import { Client } from '../../src/models/client';
|
||||
|
||||
describe('Realm', () => {
|
||||
describe('#generateClientId', () => {
|
||||
it('should generate a 36-character UUID', () => {
|
||||
it('should generate a 36-character UUID, or return function value', () => {
|
||||
const realm = new Realm();
|
||||
expect(realm.generateClientId().length).to.eq(36);
|
||||
expect(realm.generateClientId(() => 'abcd')).to.eq('abcd');
|
||||
|
Loading…
x
Reference in New Issue
Block a user