2017-03-09 18:55:18 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`class.js 1`] = `
|
|
|
|
====================================options=====================================
|
2018-12-27 16:05:19 +03:00
|
|
|
parsers: ["flow", "babel", "typescript"]
|
2018-11-25 11:21:14 +03:00
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-19 21:59:23 +03:00
|
|
|
class x {
|
|
|
|
/**
|
|
|
|
* Set of default settings to be applied to model fetch calls in DAO layer.
|
|
|
|
*/
|
|
|
|
static get defaultSettings() {
|
|
|
|
}
|
|
|
|
}
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-04-19 21:59:23 +03:00
|
|
|
class x {
|
|
|
|
/**
|
2017-10-08 12:34:24 +03:00
|
|
|
* Set of default settings to be applied to model fetch calls in DAO layer.
|
|
|
|
*/
|
2017-04-19 21:59:23 +03:00
|
|
|
static get defaultSettings() {}
|
|
|
|
}
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-04-19 21:59:23 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`empty_paren_comment.js 1`] = `
|
|
|
|
====================================options=====================================
|
2018-12-27 16:05:19 +03:00
|
|
|
parsers: ["flow", "babel", "typescript"]
|
2018-11-25 11:21:14 +03:00
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
let f = (/* ... */) => {}
|
2017-03-09 18:55:18 +03:00
|
|
|
(function (/* ... */) {})(/* ... */)
|
|
|
|
function f(/* ... */) {}
|
|
|
|
|
|
|
|
const obj = {
|
|
|
|
f(/* ... */) {},
|
|
|
|
f: (/* ... */) => {},
|
|
|
|
f: function(/* ... */) {},
|
|
|
|
f: function f(/* ... */) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
class Foo {
|
|
|
|
f(/* ... */) {}
|
2017-04-19 20:44:00 +03:00
|
|
|
f() /* ... */ {}
|
2017-03-09 18:55:18 +03:00
|
|
|
f = (/* ... */) => {};
|
|
|
|
static f(/* ... */) {};
|
|
|
|
static f = (/* ... */) => {};
|
|
|
|
static f = function(/* ... */) {};
|
|
|
|
static f = function f(/* ... */) {};
|
|
|
|
}
|
|
|
|
|
|
|
|
f(/* ... */);
|
|
|
|
f(a, /* ... */);
|
|
|
|
f(a, /* ... */ b);
|
|
|
|
f(/* ... */ a, b);
|
2017-11-28 13:58:39 +03:00
|
|
|
|
|
|
|
let f = () => import(a /* ... */);
|
|
|
|
let f = () => doThing(a, /* ... */ b);
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-03-09 18:55:18 +03:00
|
|
|
let f = (/* ... */) => {};
|
|
|
|
(function(/* ... */) {})(/* ... */);
|
|
|
|
function f(/* ... */) {}
|
|
|
|
|
|
|
|
const obj = {
|
|
|
|
f(/* ... */) {},
|
|
|
|
f: (/* ... */) => {},
|
|
|
|
f: function(/* ... */) {},
|
|
|
|
f: function f(/* ... */) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class Foo {
|
|
|
|
f(/* ... */) {}
|
2017-12-15 10:11:48 +03:00
|
|
|
f() /* ... */ {}
|
2017-03-09 18:55:18 +03:00
|
|
|
f = (/* ... */) => {};
|
|
|
|
static f(/* ... */) {}
|
|
|
|
static f = (/* ... */) => {};
|
|
|
|
static f = function(/* ... */) {};
|
|
|
|
static f = function f(/* ... */) {};
|
|
|
|
}
|
|
|
|
|
|
|
|
f(/* ... */);
|
|
|
|
f(a /* ... */);
|
|
|
|
f(a, /* ... */ b);
|
|
|
|
f(/* ... */ a, b);
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-11-28 13:58:39 +03:00
|
|
|
let f = () => import(a /* ... */);
|
|
|
|
let f = () => doThing(a, /* ... */ b);
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-03-09 18:55:18 +03:00
|
|
|
`;
|