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');