File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import { randomBytes } from 'crypto' ;
2+
13import { faker } from '@faker-js/faker' ;
24
3- import { createToken } from '../../../client/lib/utils/createToken' ;
45import { Users } from '../fixtures/userStates' ;
56import { OmnichannelContacts } from '../page-objects/omnichannel-contacts-list' ;
67import { OmnichannelSection } from '../page-objects/omnichannel-section' ;
78import { test , expect } from '../utils/test' ;
89
10+ const createToken = ( ) : string => {
11+ const array = new Uint8Array ( 16 ) ;
12+
13+ const buffer = randomBytes ( 16 ) ;
14+ array . set ( buffer ) ;
15+
16+ return Array . from ( array )
17+ . map ( ( byte ) => byte . toString ( 16 ) . padStart ( 2 , '0' ) )
18+ . join ( '' ) ;
19+ } ;
20+
921const createContact = ( generateToken = false ) => ( {
1022 id : null ,
1123 name : `${ faker . person . firstName ( ) } ${ faker . person . lastName ( ) } ` ,
You can’t perform that action at this time.
0 commit comments