aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/test/jest.classes.ts
diff options
context:
space:
mode:
authorGravatar Ashcon Partovi <ashcon@partovi.net> 2023-05-26 19:24:20 -0700
committerGravatar GitHub <noreply@github.com> 2023-05-26 19:24:20 -0700
commit1a30b4fe2903186658ef0c70e9c6cdbb5c5bed6b (patch)
treebb08e4774e1526e1fbf1fa6c920f9db5b64b31b4 /src/bun.js/test/jest.classes.ts
parent4298f36fc9745a130a3296a05e9577e0c9bae6fe (diff)
downloadbun-1a30b4fe2903186658ef0c70e9c6cdbb5c5bed6b.tar.gz
bun-1a30b4fe2903186658ef0c70e9c6cdbb5c5bed6b.tar.zst
bun-1a30b4fe2903186658ef0c70e9c6cdbb5c5bed6b.zip
Implement `expect().toBeEmpty()` (#3060)
* Implement `expect().toBeEmpty()` * Fix formatting on test * Finish up expect().toBeEmpty() * Update expect.test.ts --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/bun.js/test/jest.classes.ts')
-rw-r--r--src/bun.js/test/jest.classes.ts21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/bun.js/test/jest.classes.ts b/src/bun.js/test/jest.classes.ts
index 612fc0268..bc2dbb1a1 100644
--- a/src/bun.js/test/jest.classes.ts
+++ b/src/bun.js/test/jest.classes.ts
@@ -121,10 +121,6 @@ export default [
fn: "toBeCloseTo",
length: 1,
},
- toBeEven: {
- fn: "toBeEven",
- length: 0,
- },
toBeGreaterThan: {
fn: "toBeGreaterThan",
length: 1,
@@ -141,10 +137,6 @@ export default [
fn: "toBeLessThanOrEqual",
length: 1,
},
- toBeOdd: {
- fn: "toBeOdd",
- length: 0,
- },
toBeInstanceOf: {
fn: "toBeInstanceOf",
length: 1,
@@ -229,6 +221,19 @@ export default [
getter: "getRejects",
this: true,
},
+ // jest-extended
+ toBeEmpty: {
+ fn: "toBeEmpty",
+ length: 0,
+ },
+ toBeEven: {
+ fn: "toBeEven",
+ length: 0,
+ },
+ toBeOdd: {
+ fn: "toBeOdd",
+ length: 0,
+ },
},
}),
];