9 lines
239 B
JavaScript
9 lines
239 B
JavaScript
test("constructor properties", () => {
|
|
expect(String).toHaveLength(1);
|
|
expect(String.name).toBe("String");
|
|
});
|
|
|
|
test("typeof", () => {
|
|
expect(typeof String()).toBe("string");
|
|
expect(typeof new String()).toBe("object");
|
|
});
|