Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

i18nc-test-req

2.0.0 • Public • Published

I18NC-Test-Req

NPM Version NPM Downloads NPM License

Install

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

Usage

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

2.0.0

License

MIT

Unpacked Size

5.91 kB

Total Files

4

Last publish

Collaborators

  • avatar