Skip to content

Commit

Permalink
update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolodavis committed Mar 16, 2020
1 parent 60c6d88 commit c1dba9f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"mongodb": "^3.0.3",
"node-persist": "^3.0.4",
"nodemon": "^1.18.9",
"prettier": "^1.10.2",
"prettier": "^1.19.1",
"raf": "^3.4.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
Expand Down
5 changes: 4 additions & 1 deletion src/core/events.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ test('dispatch', () => {
expect(e.dispatch).toEqual([]);
ctx.events.A();
ctx.events.B();
expect(e.dispatch).toEqual([{ key: 'A', args: [] }, { key: 'B', args: [] }]);
expect(e.dispatch).toEqual([
{ key: 'A', args: [] },
{ key: 'B', args: [] },
]);
});

test('update ctx', () => {
Expand Down
5 changes: 4 additions & 1 deletion src/master/master.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ describe('sync', () => {
const masterWithMetadata = new Master(game, db, TransportAPI(send));
await masterWithMetadata.onSync('gameID', '0', 2);

const expectedMetadata = [{ id: 0, name: 'Alice' }, { id: 1, name: 'Bob' }];
const expectedMetadata = [
{ id: 0, name: 'Alice' },
{ id: 1, name: 'Bob' },
];
expect(send.mock.calls[0][0].args[3]).toMatchObject(expectedMetadata);
});
});
Expand Down

0 comments on commit c1dba9f

Please sign in to comment.