From a12080f08aadf19c1ab56e9b1f7734cad4a7df4a Mon Sep 17 00:00:00 2001 From: janmonschke Date: Tue, 21 Apr 2015 10:03:21 +0200 Subject: [PATCH] prefix commands --- src/commands.js | 8 ++++---- test/client_test.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands.js b/src/commands.js index eb09d4a..8efca58 100644 --- a/src/commands.js +++ b/src/commands.js @@ -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' }; diff --git a/test/client_test.js b/test/client_test.js index 9d3d920..68479b5 100644 --- a/test/client_test.js +++ b/test/client_test.js @@ -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)); }); });