mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
9 lines
165 B
JavaScript
9 lines
165 B
JavaScript
test("basic update expression", () => {
|
|
const o = {};
|
|
o.f = 1;
|
|
|
|
expect(o.f++).toBe(1);
|
|
expect(++o.f).toBe(3);
|
|
expect(++o.missing).toBeNaN();
|
|
});
|