mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
This matches our coding style recommendation in CodingStyle.md, and matches our python formatting.
19 lines
545 B
JavaScript
19 lines
545 B
JavaScript
test("constructor properties", () => {
|
|
expect(AsyncDisposableStack).toHaveLength(0);
|
|
expect(AsyncDisposableStack.name).toBe("AsyncDisposableStack");
|
|
});
|
|
|
|
describe("errors", () => {
|
|
test("called without new", () => {
|
|
expect(() => {
|
|
AsyncDisposableStack();
|
|
}).toThrowWithMessage(TypeError, "AsyncDisposableStack constructor must be called with 'new'");
|
|
});
|
|
});
|
|
|
|
describe("normal behavior", () => {
|
|
test("typeof", () => {
|
|
expect(typeof new AsyncDisposableStack()).toBe("object");
|
|
});
|
|
});
|