How to use the mappersmith.Utils function in mappersmith

To help you get started, we’ve selected a few mappersmith examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tulios / mappersmith / src / fixture.js View on Github external
var Utils = require('mappersmith').Utils;
var STORE = {};

function FixtureEntry(method) {
  this.opts = {
    calls: [],
    method: method.toLowerCase(),
    success: true
  }
}

FixtureEntry.prototype = {
  matching: function(params) {
    this.opts.matchingParams = params;
    return this;
  },

mappersmith

It is a lightweight rest client for node.js and the browser

MIT
Latest version published 3 months ago

Package Health Score

83 / 100
Full package analysis