Files
test-repo/tests/format/js/function-first-param/__snapshots__/jsfmt.spec.js.snap
T

68 lines
1.6 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`function_expression.js format 1`] = `
====================================options=====================================
parsers: ["babel", "flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
//https://github.com/prettier/prettier/issues/3002
beep.boop().baz("foo",
{
some: {
thing: {
nested: true
}
}
},
{ another: { thing: true } },
() => {});
//https://github.com/prettier/prettier/issues/2984
db.collection('indexOptionDefault').createIndex({ a: 1 }, {
indexOptionDefaults: true,
w: 2,
wtimeout: 1000
}, function(err) {
test.equal(null, err);
test.deepEqual({ w: 2, wtimeout: 1000 }, commandResult.writeConcern);
client.close();
done();
});
=====================================output=====================================
//https://github.com/prettier/prettier/issues/3002
beep.boop().baz(
"foo",
{
some: {
thing: {
nested: true,
},
},
},
{ another: { thing: true } },
() => {},
);
//https://github.com/prettier/prettier/issues/2984
db.collection("indexOptionDefault").createIndex(
{ a: 1 },
{
indexOptionDefaults: true,
w: 2,
wtimeout: 1000,
},
function (err) {
test.equal(null, err);
test.deepEqual({ w: 2, wtimeout: 1000 }, commandResult.writeConcern);
client.close();
done();
},
);
================================================================================
`;