ladybird/Userland/Libraries/LibJS/Tests/builtins/Intl/DisplayNames/DisplayNames.js

14 lines
367 B
JavaScript
Raw Normal View History

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