ladybird/Userland/Libraries/LibJS/Tests/builtins/Intl/DisplayNames/DisplayNames.js
Timothy Flynn 0fb4e8b749 LibJS: Implement a nearly empty Intl.DisplayNames object
This adds plumbing for the Intl.DisplayNames object, constructor, and
prototype.
2021-08-26 22:04:09 +01:00

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