mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
15 lines
265 B
JavaScript
15 lines
265 B
JavaScript
test("basic functionality", () => {
|
|
function foo(a) {
|
|
return a;
|
|
}
|
|
|
|
var x = undefined;
|
|
expect(x).toBeUndefined();
|
|
expect(foo(x)).toBeUndefined();
|
|
|
|
var o = {};
|
|
o.x = x;
|
|
expect(o.x).toBeUndefined();
|
|
expect(o.x).toBe(x);
|
|
});
|