Notorious Party Muppets
Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

i18nc-test-req

1.2.1 • Public • Published

I18NC-Test-Req

NPM Version NPM Downloads NPM License

Install

npm install i18nc-test-req --save-dev

Useage

var expect = require('expect.js');
var testReq = require('i18nc-test-req');
var requireAfterWrite = testReq('base');
testReq.ROOT_PATH = __dirname;
 
var data = function code(){
  console.log(11);
}
 
var otherData = requireAfterWrite('func.js', data);
expect(testReq.code2arr(data)).to.eql(testReq.code2arr(otherData));

Run In Production

mocha test/test_*

Run In Development

cross-env TEST_BUILD=true mocha test/test_*

Keywords

Install

npm i i18nc-test-req

DownloadsWeekly Downloads

4

Version

1.2.1

License

MIT

Unpacked Size

5.87 kB

Total Files

4

Last publish

Collaborators

  • avatar