×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: bluelovers ka
Added: Nov 30, 2017 3:34 PM
Modified: Dec 10, 2017 8:53 PM
Views: 2
Tags: chai dev mocha test
  1.  
  2. // @ts-ignore
  3. import * as chai from 'chai';
  4. // @ts-ignore
  5. import * as path from 'path';
  6.  
  7. export { path };
  8.  
  9. // @ts-ignore
  10. export const rootDir = path.join(__dirname, '..');
  11.  
  12. export function relative(filename): string
  13. {
  14.         return path.relative(rootDir, filename);
  15. }
  16.  
  17. export const expect = chai.expect;
  18. export const assert = chai.assert;
  19.  
  20. // @ts-ignore
  21. export default exports;
  22.