Skip to content

Commit

Permalink
prefix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
janmonschke committed Apr 21, 2015
1 parent bdf6303 commit a12080f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/commands.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
join: 'join',
syncWithServer: 'send-edit',
remoteUpdateIncoming: 'updated-doc',
error: 'error'
join: 'diffsync-join',
syncWithServer: 'diffsync-send-edit',
remoteUpdateIncoming: 'diffsync-updated-doc',
error: 'diffsync-error'
};
2 changes: 1 addition & 1 deletion test/client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('DiffSync Client', function(){
c.initialize();

assert(spy.called);
assert(spy.calledWith('join', c.room));
assert(spy.calledWith(COMMANDS.join, c.room));
});
});

Expand Down

0 comments on commit a12080f

Please sign in to comment.