summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/builtins/String/String.js
blob: 687e0929d4fa8f845eb258c31920afc8e17d7c47 (plain)
1
2
3
4
5
6
7
8
9
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");
});