6 lines
94 B
JavaScript

function foo(x=5, y=6) {
return [x, y];
}
expect(foo(undefined, null)).toEqual([5, null]);