From 8fd3c04480572b107d6d049a453e0c7643261e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 16 Oct 2020 20:36:24 -0400 Subject: [PATCH] fix: test --- test/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/api.js b/test/api.js index a639590e1811..f5eae8ad7b9c 100644 --- a/test/api.js +++ b/test/api.js @@ -17,7 +17,7 @@ const topics = require('../src/topics'); const plugins = require('../src/plugins'); const flags = require('../src/flags'); const messaging = require('../src/messaging'); -const socketUser = require('../src/socket.io/user'); + describe('Read API', async () => { let readApi = false; @@ -61,6 +61,7 @@ describe('Read API', async () => { // Create a new chat room await messaging.newRoom(1, [2]); + const socketUser = require('../src/socket.io/user'); // export data for admin user await socketUser.exportProfile({ uid: adminUid }, { uid: adminUid }); await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid });