From 7d5820585b6a9726d080034ce1630a200382c13a Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Fri, 23 Dec 2016 21:31:00 -0500 Subject: [PATCH] Resolve lint issues --- test/integration/control.js | 5 +++-- test/integration/data.js | 5 +++-- test/integration/event.js | 5 +++-- test/integration/looks.js | 5 +++-- test/integration/motion.js | 5 +++-- test/unit/import_sb2.js | 1 - 6 files changed, 15 insertions(+), 11 deletions(-) diff --git a/test/integration/control.js b/test/integration/control.js index 9dd59c53f..fba8ed9c3 100644 --- a/test/integration/control.js +++ b/test/integration/control.js @@ -1,9 +1,10 @@ +var path = require('path'); var test = require('tap').test; var extract = require('../fixtures/extract'); var VirtualMachine = require('../../src/index'); -var path = __dirname + '/../fixtures/control.sb2'; -var project = extract(path); +var uri = path.resolve(__dirname, '../fixtures/control.sb2'); +var project = extract(uri); test('control project', function (t) { var vm = new VirtualMachine(); diff --git a/test/integration/data.js b/test/integration/data.js index d749d3e94..de169e028 100644 --- a/test/integration/data.js +++ b/test/integration/data.js @@ -1,9 +1,10 @@ +var path = require('path'); var test = require('tap').test; var extract = require('../fixtures/extract'); var VirtualMachine = require('../../src/index'); -var path = __dirname + '/../fixtures/data.sb2'; -var project = extract(path); +var uri = path.resolve(__dirname, '../fixtures/data.sb2'); +var project = extract(uri); test('data project', function (t) { var vm = new VirtualMachine(); diff --git a/test/integration/event.js b/test/integration/event.js index 7e8c3b070..a70493161 100644 --- a/test/integration/event.js +++ b/test/integration/event.js @@ -1,9 +1,10 @@ +var path = require('path'); var test = require('tap').test; var extract = require('../fixtures/extract'); var VirtualMachine = require('../../src/index'); -var path = __dirname + '/../fixtures/event.sb2'; -var project = extract(path); +var uri = path.resolve(__dirname, '../fixtures/event.sb2'); +var project = extract(uri); test('event project', function (t) { var vm = new VirtualMachine(); diff --git a/test/integration/looks.js b/test/integration/looks.js index 575f20731..f8b52ae45 100644 --- a/test/integration/looks.js +++ b/test/integration/looks.js @@ -1,9 +1,10 @@ +var path = require('path'); var test = require('tap').test; var extract = require('../fixtures/extract'); var VirtualMachine = require('../../src/index'); -var path = __dirname + '/../fixtures/looks.sb2'; -var project = extract(path); +var uri = path.resolve(__dirname, '../fixtures/looks.sb2'); +var project = extract(uri); test('looks project', function (t) { var vm = new VirtualMachine(); diff --git a/test/integration/motion.js b/test/integration/motion.js index 44d5807ed..cb620a687 100644 --- a/test/integration/motion.js +++ b/test/integration/motion.js @@ -1,9 +1,10 @@ +var path = require('path'); var test = require('tap').test; var extract = require('../fixtures/extract'); var VirtualMachine = require('../../src/index'); -var path = __dirname + '/../fixtures/motion.sb2'; -var project = extract(path); +var uri = path.resolve(__dirname, '../fixtures/motion.sb2'); +var project = extract(uri); test('motion project', function (t) { var vm = new VirtualMachine(); diff --git a/test/unit/import_sb2.js b/test/unit/import_sb2.js index af67d5a70..900563735 100644 --- a/test/unit/import_sb2.js +++ b/test/unit/import_sb2.js @@ -1,4 +1,3 @@ -var fs = require('fs'); var path = require('path'); var test = require('tap').test; var extract = require('../fixtures/extract');