Skip to content

Commit 48f3c8e

Browse files
authored
test: fix the uuidV4 generator import (#1650)
1 parent 4101531 commit 48f3c8e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

test/typescript/response-generators/channel-type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { v4: uuidv4 } = require('uuid');
1+
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
22
const utils = require('../utils');
33

44
async function createChannelType() {

test/typescript/response-generators/channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { v4: uuidv4 } = require('uuid');
1+
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
22
const utils = require('../utils');
33
const fs = require('fs');
44
const url = require('url');

test/typescript/response-generators/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { v4: uuidv4 } = require('uuid');
1+
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
22
const utils = require('../utils');
33

44
async function addDevice() {

test/typescript/response-generators/event.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
const { v4: uuid4 } = require('uuid');
1+
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
22
const utils = require('../utils');
33

4-
const johnID = `john-${uuid4()}`;
4+
const johnID = `john-${uuidv4()}`;
55

66
async function keystroke() {
77
const authClient = await utils.getTestClientForUser(johnID, {});
8-
const channel = authClient.channel('messaging', `poppins-${uuid4()}`);
8+
const channel = authClient.channel('messaging', `poppins-${uuidv4()}`);
99
await channel.watch();
1010

1111
return await channel.keystroke();
1212
}
1313

1414
async function sendMessageReadEvent() {
1515
const authClient = await utils.getTestClientForUser(johnID, {});
16-
const channel = authClient.channel('messaging', `poppins-${uuid4()}`);
16+
const channel = authClient.channel('messaging', `poppins-${uuidv4()}`);
1717
await channel.watch();
1818
const event = {
1919
type: 'message.read',
@@ -24,7 +24,7 @@ async function sendMessageReadEvent() {
2424

2525
async function stopTyping() {
2626
const authClient = await utils.getTestClientForUser(johnID, {});
27-
const channel = authClient.channel('messaging', `poppins-${uuid4()}`);
27+
const channel = authClient.channel('messaging', `poppins-${uuidv4()}`);
2828
await channel.watch();
2929

3030
return await channel.stopTyping();

test/typescript/response-generators/message.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { v4: uuidv4 } = require('uuid');
1+
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
22
const utils = require('../utils');
33

44
const johnID = `john-${uuidv4()}`;

test/typescript/response-generators/moderation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { v4: uuidv4 } = require('uuid');
1+
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
22
const utils = require('../utils');
33
const { sleep } = require('../utils');
44

0 commit comments

Comments
 (0)