ladybird/Libraries/LibJS/Tests/add-values-to-primitive.js

7 lines
215 B
JavaScript
Raw Permalink Normal View History

test("adding objects", () => {
expect([] + []).toBe("");
expect([] + {}).toBe("[object Object]");
expect({} + {}).toBe("[object Object][object Object]");
expect({} + []).toBe("[object Object]");
});