@locustjs/test 1.6.4 → 2.0.1
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/README.md +16 -4
- package/dist/index.js +621 -166
- package/package.json +39 -39
- package/rollup.config.js +16 -0
- package/src/Expect.js +1204 -0
- package/src/Test.js +88 -0
- package/src/TestException.js +5 -0
- package/src/TestRunner.js +331 -0
- package/src/index.js +5 -1598
- package/tests/index.js +4 -4
- package/.babelrc +0 -3
package/tests/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import TestRunner from "../src";
|
|
1
|
+
import { TestRunner } from "../src";
|
|
2
2
|
|
|
3
3
|
class Foo {}
|
|
4
4
|
class Bar extends Foo {}
|
|
@@ -92,10 +92,10 @@ const tests = [
|
|
|
92
92
|
function (expect) {
|
|
93
93
|
const x = 30;
|
|
94
94
|
|
|
95
|
-
expect(x).
|
|
95
|
+
expect(x).toBe(20);
|
|
96
96
|
},
|
|
97
97
|
],
|
|
98
|
-
["Test 8: not
|
|
98
|
+
["Test 8: expect not used", function (expect) {}],
|
|
99
99
|
[
|
|
100
100
|
"Test 9: error without expect",
|
|
101
101
|
function (expect) {
|
|
@@ -118,4 +118,4 @@ const tests = [
|
|
|
118
118
|
],
|
|
119
119
|
];
|
|
120
120
|
|
|
121
|
-
TestRunner.start(tests);
|
|
121
|
+
TestRunner.start(tests, true);
|
package/.babelrc
DELETED