Skip to content

Commit

Permalink
expose clientSync to make it testable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Schreck committed Jan 22, 2014
1 parent 7eed352 commit cf022de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shared/syncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function addApiParams(method, model, params) {
return ret;
}

syncer.clientSync = clientSync;
syncer.sync = function sync() {
var syncMethod = isServer ? serverSync : clientSync;
return syncMethod.apply(this, arguments);
Expand Down

0 comments on commit cf022de

Please sign in to comment.