-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
26 lines (21 loc) · 700 Bytes
/
test.js
File metadata and controls
26 lines (21 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'use strict';
require('dotenv').config();
const { connectMongoClient } = require('./mongo');
const { testAdminsCollection } = require('./test/testAdmins');
const { testChatsCollection } = require('./test/testChats');
const { testHelpers } = require('./test/testHelpers');
const { testQueuesCollection } = require('./test/testQueues');
const { testVersionsCollection } = require('./test/testVersions');
connectMongoClient();
async function collectionTests() {
await testAdminsCollection();
await testChatsCollection();
await testVersionsCollection();
await testQueuesCollection();
}
async function allTests() {
testHelpers();
await collectionTests();
process.exit(0);
}
allTests();