2017-07-11 02:11:18 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`destructuring.ts 1`] = `
|
|
|
|
({ foo = [] } = bar);
|
2017-07-16 16:59:49 +03:00
|
|
|
|
|
|
|
function f({ x }?) {}
|
|
|
|
function g([ x ]?) {}
|
2017-07-11 02:11:18 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
({ foo = [] } = bar);
|
|
|
|
|
2017-07-16 16:59:49 +03:00
|
|
|
function f({ x }?) {}
|
|
|
|
function g([x]?) {}
|
|
|
|
|
2017-07-11 02:11:18 +03:00
|
|
|
`;
|