mirror of
https://github.com/zhigang1992/replace-in-file.git
synced 2026-06-17 05:29:56 +08:00
19 lines
410 B
JavaScript
19 lines
410 B
JavaScript
'use strict';
|
|
|
|
//Load dependencies
|
|
const Promise = require('bluebird');
|
|
const chai = require('chai');
|
|
const dirtyChai = require('dirty-chai');
|
|
const chaiAsPromised = require('chai-as-promised');
|
|
|
|
//Enable should assertion style for usage with chai-as-promised
|
|
chai.should();
|
|
|
|
//Extend chai
|
|
chai.use(dirtyChai);
|
|
chai.use(chaiAsPromised);
|
|
|
|
//Expose globals
|
|
global.Promise = Promise;
|
|
global.expect = chai.expect;
|