30 lines
938 B
Plaintext
30 lines
938 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`test.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
function foo(x: Array<Object>): Array<Object> {
|
|
return x.sort((a, b) => a.foo - b.foo);
|
|
}
|
|
|
|
// Make sure Object works with Object.keys()
|
|
function bar(x: Object): Array<string> {
|
|
return Object.keys(x);
|
|
}
|
|
|
|
=====================================output=====================================
|
|
function foo(x: Array<Object>): Array<Object> {
|
|
return x.sort((a, b) => a.foo - b.foo);
|
|
}
|
|
|
|
// Make sure Object works with Object.keys()
|
|
function bar(x: Object): Array<string> {
|
|
return Object.keys(x);
|
|
}
|
|
|
|
================================================================================
|
|
`;
|