mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-07 16:51:01 +00:00
14 lines
367 B
JavaScript
14 lines
367 B
JavaScript
|
|
describe("errors", () => {
|
||
|
|
test("called without new", () => {
|
||
|
|
expect(() => {
|
||
|
|
Intl.DisplayNames();
|
||
|
|
}).toThrowWithMessage(TypeError, "Intl.DisplayNames constructor must be called with 'new'");
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
describe("normal behavior", () => {
|
||
|
|
test("length is 2", () => {
|
||
|
|
expect(Intl.DisplayNames).toHaveLength(2);
|
||
|
|
});
|
||
|
|
});
|