mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
13 lines
349 B
JavaScript
13 lines
349 B
JavaScript
describe("errors", () => {
|
|
test("called without new", () => {
|
|
expect(() => {
|
|
Intl.Locale();
|
|
}).toThrowWithMessage(TypeError, "Intl.Locale constructor must be called with 'new'");
|
|
});
|
|
});
|
|
|
|
describe("normal behavior", () => {
|
|
test("length is 1", () => {
|
|
expect(Intl.Locale).toHaveLength(1);
|
|
});
|
|
});
|