Use ES6 linting rules in the project root

Update all tests for `no-var` and `prefer-arrow-callback` (using `--fix`)
This commit is contained in:
Ray Schamp 2017-04-20 19:17:05 -04:00
parent 5f59d1e7e5
commit bafdf8d9f2
36 changed files with 666 additions and 666 deletions
test/unit

View file

@ -1,8 +1,8 @@
var test = require('tap').test;
var VirtualMachine = require('../../src/index');
const test = require('tap').test;
const VirtualMachine = require('../../src/index');
test('interface', function (t) {
var vm = new VirtualMachine();
test('interface', t => {
const vm = new VirtualMachine();
t.type(vm, 'object');
t.type(vm.start, 'function');
t.type(vm.greenFlag, 'function');