Add npm test
This commit is contained in:
1 parent
873cfc7dc2
commit
8096e5b882
2 files changed
+2
-3
No files matched your search
@@ -116,8 +116,7 @@ class Client extends Discord.Client {
|
|||||||
|
|
||||||
console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Events ▬▬▬▬▬▬▬");
|
console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Events ▬▬▬▬▬▬▬");
|
||||||
console.log(" ");
|
console.log(" ");
|
||||||
console.log(process.title);
|
if (process.argv[0] != "test") {
|
||||||
if (process.title != "npm test") {
|
|
||||||
this.login(token);
|
this.login(token);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm i && node index.js",
|
"start": "npm i && node index.js",
|
||||||
"test": "node index.js"
|
"test": "node index.js test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in new issue
Block a user