Sha256: 9b32aa6b162c94013f3aba21dd620c1d1b79650bcb651f87901b6b6324a52501
Contents?: true
Size: 454 Bytes
Versions: 19
Compression:
Stored size: 454 Bytes
Contents
const chai = require('chai') global.expect = chai.expect const fs = require('file-system') const jsdom = require('mocha-jsdom') const path = require('path') const babel = require('babel-core'); const html = fs.readFileSync(path.resolve(__dirname, '..', 'index.html'), 'utf-8') const babelResult = babel.transformFileSync( path.resolve(__dirname, '..', 'index.js'), { presets: ['env'] } ); const src = babelResult.code jsdom({ html, src });
Version data entries
19 entries across 19 versions & 2 rubygems