String.js 239 B

123456789
  1. test("constructor properties", () => {
  2. expect(String).toHaveLength(1);
  3. expect(String.name).toBe("String");
  4. });
  5. test("typeof", () => {
  6. expect(typeof String()).toBe("string");
  7. expect(typeof new String()).toBe("object");
  8. });