jaredhanson/chai-locomotive-helpers

View on GitHub
lib/index.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function(chai, _) {
  var Test = require('./test');
  
  chai.locomotive = chai.locomotive || {};
  chai.locomotive.helper = function(setup, controller, action) {
    return new Test(setup, controller, action);
  };
  chai.locomotive.dynamicHelper = function(setup, controller, action) {
    return new Test(setup, controller, action, true);
  };
};