mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
This matches our coding style recommendation in CodingStyle.md, and matches our python formatting.
18 lines
545 B
JavaScript
18 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");
|
|
});
|
|
});
|