Skip to content

Commit

Permalink
Fix: Keep compatibility with node < 5
Browse files Browse the repository at this point in the history
  • Loading branch information
artberri committed Dec 7, 2017
1 parent db23903 commit a107d34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# rollup-plugin-istanbul

[![Build Status](https://travis-ci.org/artberri/rollup-plugin-istanbul.svg?branch=master)](https://travis-ci.org/artberri/rollup-plugin-istanbul)
[![Code Climate](https://codeclimate.com/github/artberri/rollup-plugin-istanbul/badges/gpa.svg)](https://codeclimate.com/github/artberri/rollup-plugin-istanbul)
[![Maintainability](https://api.codeclimate.com/v1/badges/ea3da2334fcbff2a07c8/maintainability)](https://codeclimate.com/github/artberri/rollup-plugin-istanbul/maintainability)
[![Last version](https://img.shields.io/npm/v/rollup-plugin-istanbul.svg)](https://www.npmjs.com/package/rollup-plugin-istanbul)
[![Total Downloads](https://img.shields.io/npm/dt/rollup-plugin-istanbul.svg)](https://www.npmjs.com/package/rollup-plugin-istanbul)
[![Downloads Last Month](https://img.shields.io/npm/dm/rollup-plugin-istanbul.svg)](https://www.npmjs.com/package/rollup-plugin-istanbul)
Expand Down
10 changes: 5 additions & 5 deletions test/test.js
@@ -1,6 +1,6 @@
let assert = require('assert');
let rollup = require('rollup');
let istanbulPlugin = require( '..' );
var assert = require('assert');
var rollup = require('rollup');
var istanbulPlugin = require( '..' );

process.chdir( __dirname );

Expand All @@ -17,7 +17,7 @@ describe('rollup-plugin-istanbul', function () {
}).then( function ( bundle ) {
return bundle.generate({format: 'iife'});
}).then(generated => {
let code = generated.code;
var code = generated.code;
assert.ok(code.indexOf('coverage[path]') !== -1, code);
});
});
Expand All @@ -32,7 +32,7 @@ describe('rollup-plugin-istanbul', function () {
}).then( function ( bundle ) {
return bundle.generate({format: 'iife'});
}).then(generated => {
let code = generated.code;
var code = generated.code;
assert.ok(code.indexOf('fixtures/main.js') !== -1, code);
});
});
Expand Down

0 comments on commit a107d34

Please sign in to comment.