Skip to content

Commit

Permalink
removed unused test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Jan 2, 2024
1 parent a13a017 commit b9ba881
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/services/rocketChat/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/* eslint-disable no-unused-expressions */
const assert = require('assert');
const chai = require('chai');
const mockery = require('mockery');
const { ObjectId } = require('mongoose').Types;

const appPromise = require('../../../src/app');
Expand All @@ -23,19 +22,11 @@ describe('rocket.chat user service', () => {
before(async () => {
app = await appPromise();
// const rcMock = await rcMockServer({});
const rocketChatService = {
app.services['nest-rocket-chat'] = {
getUserList: () => {
return { users: [{ _id: 'someId', username: 'someUsername' }] };
},
};
mockery.enable({
warnOnUnregistered: false,
});

// ROCKET_CHAT_ADMIN_TOKEN, ROCKET_CHAT_ADMIN_ID
// mockery.registerMock('../../../config/globals', { ROCKET_CHAT_URI: rcMock.url });
// const rocketChatService = { getUserList: sinon.spy() };
app.services['nest-rocket-chat'] = rocketChatService;

delete require.cache[require.resolve('../../../src/services/rocketChat/services/rocketChatUser.js')];
delete require.cache[require.resolve('../../../src/services/rocketChat/helpers.js')];
Expand Down

0 comments on commit b9ba881

Please sign in to comment.