1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:18:11 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.js
Timothy Flynn 2c10e9fdd3 LibJS: Implement a nearly empty Intl.Locale object
This adds plumbing for the Intl.Locale object, constructor, and
prototype.
2021-09-02 17:56:42 +01:00

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);
});
});