prettier/tests/function_first_param/__snapshots__/jsfmt.spec.js.snap

68 lines
1.5 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`function_expression.js 1`] = `
====================================options=====================================
parsers: ["flow", "babel", "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();
}
);
================================================================================
`;