ladybird/Userland/Libraries/LibJS/Tests/add-values-to-primitive.js
2021-01-12 12:17:46 +01:00

6 lines
215 B
JavaScript

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