blob: 8322c55a6a3a158b7be57707c496c6749240cbd9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import { describe, expect, test } from "bun:test";
describe("different kinds of matchers", () => {
test("toBeInstanceOf", () => {
expect({}).toBeInstanceOf(Object);
expect(new String("test")).toBeInstanceOf(String);
expect(() => {}).toBeInstanceOf(Function);
class A {}
expect(new A()).toBeInstanceOf(A);
});
});
|