@locustjs/test 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +3 -0
- package/README.md +143 -24
- package/index.cjs.js +1649 -1150
- package/index.esm.js +358 -274
- package/package.json +6 -1
- package/tests/index.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locustjs/test",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "This library provides a simple test runner.",
|
|
5
5
|
"main": "index.cjs.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"locustjs",
|
|
17
|
+
"unit test",
|
|
18
|
+
"unit testing",
|
|
19
|
+
"tdd",
|
|
20
|
+
"test",
|
|
17
21
|
"test runner"
|
|
18
22
|
],
|
|
19
23
|
"author": "Iron Code",
|
|
@@ -23,6 +27,7 @@
|
|
|
23
27
|
},
|
|
24
28
|
"homepage": "https://github.com/ironcodev/locustjs-test#readme",
|
|
25
29
|
"dependencies": {
|
|
30
|
+
"@babel/preset-env": "^7.24.7",
|
|
26
31
|
"@locustjs/base": "^4.0.0",
|
|
27
32
|
"@locustjs/exception": "^2.0.2"
|
|
28
33
|
},
|
package/tests/index.js
CHANGED
|
@@ -97,7 +97,13 @@ const tests = [
|
|
|
97
97
|
],
|
|
98
98
|
["Test 8: not expected", function (expect) {}],
|
|
99
99
|
[
|
|
100
|
-
"Test 9:
|
|
100
|
+
"Test 9: error without expect",
|
|
101
|
+
function (expect) {
|
|
102
|
+
throw "some err";
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"Test 10: class",
|
|
101
107
|
function (expect) {
|
|
102
108
|
const x = new Bar();
|
|
103
109
|
|