PluralRules.js 364 B

12345678910111213
  1. describe("errors", () => {
  2. test("called without new", () => {
  3. expect(() => {
  4. Intl.PluralRules();
  5. }).toThrowWithMessage(TypeError, "Intl.PluralRules constructor must be called with 'new'");
  6. });
  7. });
  8. describe("normal behavior", () => {
  9. test("length is 0", () => {
  10. expect(Intl.PluralRules).toHaveLength(0);
  11. });
  12. });