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(" ");
|
||||
console.log(process.title);
|
||||
if (process.title != "npm test") {
|
||||
if (process.argv[0] != "test") {
|
||||
this.login(token);
|
||||
} else {
|
||||
console.log(
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "npm i && node index.js",
|
||||
"test": "node index.js"
|
||||
"test": "node index.js test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in new issue
Block a user