all files / tests/utils/ mock-data-binding.js

40% Statements 2/5
100% Branches 0/0
16.67% Functions 2/12
40% Lines 2/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                               
// Returns a mock scoped data-binding object
module.exports = function() {
  return {
    bindTo: function() { return this; },
    get: function() {},
    post: function() {},
    put: function() {},
    patch: function() {},
    delete: function() {},
    exists: function() {},
    addObserver: function() {},
    removeObserver: function() {},
    observe: function() { return this.addObserver.apply(this, arguments) },
    unobserve: function() { return this.removeObserver.apply(this, arguments) },
  };
};