function_expression.js 487 B

12345678910111213141516171819202122232425
  1. //https://github.com/prettier/prettier/issues/3002
  2. beep.boop().baz("foo",
  3. {
  4. some: {
  5. thing: {
  6. nested: true
  7. }
  8. }
  9. },
  10. { another: { thing: true } },
  11. () => {});
  12. //https://github.com/prettier/prettier/issues/2984
  13. db.collection('indexOptionDefault').createIndex({ a: 1 }, {
  14. indexOptionDefaults: true,
  15. w: 2,
  16. wtimeout: 1000
  17. }, function(err) {
  18. test.equal(null, err);
  19. test.deepEqual({ w: 2, wtimeout: 1000 }, commandResult.writeConcern);
  20. client.close();
  21. done();
  22. });