Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 6091cff

Browse files
author
Rayhan Arayilakath
committed
Create tests
1 parent 358b4c9 commit 6091cff

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"start": "node index.js",
8-
"test": "node test.js"
8+
"test": "node tests.js"
99
},
1010
"repository": {
1111
"type": "git",

tests.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const login = require('./src/classes/Login.js');
2+
const user = require('./src/classes/User.js');
3+
const post = require('./src/classes/Post.js');
4+
const repl = require('./src/classes/Repl.js');
5+
const comment = require('./src/classes/Comment.js');
6+
const leaderboard = require('./src/classes/Leaderboard.js');
7+
const languages = require('./src/classes/Languages.js');
8+
const board = require('./src/classes/Board.js');
9+
const notifications = require('./src/classes/Notifications.js');
10+
const misc = require('./src/classes/Misc.js')
11+
const custom = require('./src/classes/Custom.js')
12+
13+
if (!login) throw new Error('Login class not found');
14+
if (!user) throw new Error('User class not found');
15+
if (!post) throw new Error('Post class not found');
16+
if (!repl) throw new Error('Repl class not found');
17+
if (!comment) throw new Error('Comment class not found');
18+
if (!leaderboard) throw new Error('Leaderboard class not found');
19+
if (!languages) throw new Error('Languages class not found');
20+
if (!board) throw new Error('Board class not found');
21+
if (!notifications) throw new Error('Notifications class not found');
22+
if (!misc) throw new Error('Miscellaneous class not found');
23+
if (!custom) throw new Error('Custom class not found');

0 commit comments

Comments
 (0)