mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
8 lines
165 B
JavaScript
8 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();
|
|
});
|