Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/typescript/response-generators/channel-type.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v4: uuidv4 } = require('uuid');
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
const utils = require('../utils');

async function createChannelType() {
Expand Down
2 changes: 1 addition & 1 deletion test/typescript/response-generators/channel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v4: uuidv4 } = require('uuid');
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
const utils = require('../utils');
const fs = require('fs');
const url = require('url');
Expand Down
2 changes: 1 addition & 1 deletion test/typescript/response-generators/client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v4: uuidv4 } = require('uuid');
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
const utils = require('../utils');

async function addDevice() {
Expand Down
10 changes: 5 additions & 5 deletions test/typescript/response-generators/event.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const { v4: uuid4 } = require('uuid');
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
const utils = require('../utils');

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

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

return await channel.keystroke();
}

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

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

return await channel.stopTyping();
Expand Down
2 changes: 1 addition & 1 deletion test/typescript/response-generators/message.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v4: uuidv4 } = require('uuid');
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
const utils = require('../utils');

const johnID = `john-${uuidv4()}`;
Expand Down
2 changes: 1 addition & 1 deletion test/typescript/response-generators/moderation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v4: uuidv4 } = require('uuid');
const { generateUUIDv4: uuidv4 } = require('../../../src/utils');
const utils = require('../utils');
const { sleep } = require('../utils');

Expand Down