2020-07-05 14:47:40 -03:00
|
|
|
test("basic functionality", () => {
|
2020-07-06 11:37:45 -03:00
|
|
|
function foo(a) {
|
|
|
|
|
return a;
|
|
|
|
|
}
|
2020-04-13 14:31:13 -03:00
|
|
|
|
2020-07-06 11:37:45 -03:00
|
|
|
var x = undefined;
|
|
|
|
|
expect(x).toBeUndefined();
|
|
|
|
|
expect(foo(x)).toBeUndefined();
|
2020-03-27 08:54:18 -03:00
|
|
|
|
2020-07-06 11:37:45 -03:00
|
|
|
var o = {};
|
|
|
|
|
o.x = x;
|
|
|
|
|
expect(o.x).toBeUndefined();
|
|
|
|
|
expect(o.x).toBe(x);
|
2020-07-05 14:47:40 -03:00
|
|
|
});
|