Skip to content

Commit 30bd468

Browse files
committed
Setup test directory & linting check
1 parent 037c2e1 commit 30bd468

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "An official asynchronous JavaScript (Node.js) wrapper for MC-Market's Ultimate REST API.",
55
"main": "./src/index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "node ./tests/test.js && npx eslint ./src/"
88
},
99
"repository": {
1010
"type": "git",

tests/base.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (c) 2021 MC-Market (Mick Capital Pty. Ltd.)
2+
// MIT License (https://github.com/MC-Market-org/js-api-wrapper/blob/main/LICENSE)
3+

tests/test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright (c) 2021 MC-Market (Mick Capital Pty. Ltd.)
2+
// MIT License (https://github.com/MC-Market-org/js-api-wrapper/blob/main/LICENSE)
3+
4+
require("./base.js");
5+
throw "Test";

0 commit comments

Comments
 (0)