lodash-inflection
Version:
ActiveSupport::Inflector, for lodash!
22 lines (18 loc) • 306 B
JavaScript
/**
* Export lodash globally
*/
global._ = require('lodash');
/**
* Export `expect` globally
*/
global.expect = require('chai').expect;
/**
* Require the subject under test
*/
_.mixin(require('..'));
/**
* Reset inflections befor each test
*/
beforeEach(function() {
_.resetInflections();
});