From 2432e1314d55be19b3c263a77f653fb9399d9c76 Mon Sep 17 00:00:00 2001 From: Sebastian Velez Date: Wed, 11 Jan 2023 15:30:06 -0500 Subject: [PATCH] chore: remove phantomjs since it is deprecated --- package.json | 1 - tests/run.js | 24 ------------------------ 2 files changed, 25 deletions(-) delete mode 100644 tests/run.js diff --git a/package.json b/package.json index 8f3195d..42d83d8 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,6 @@ "mocha": "^5.0.0", "mocha-sinon": "^2.0.0", "node-gyp": "^8.3.0", - "phantomjs": "^2.1.7", "prettier": "^2.8.2", "prettier-plugin-packagejson": "^2.3.0", "prettier-plugin-sort-json": "1.0.0", diff --git a/tests/run.js b/tests/run.js deleted file mode 100644 index ffbb19c..0000000 --- a/tests/run.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Test Runner for Mocha tests - * Using phantomjs to render page and execute scripts - */ - -var node_modules = '../node_modules/'; -phantom.injectJs(node_modules + 'mocha/mocha.js'); -phantom.injectJs(node_modules + 'sinon-chrome/src/phantom-tweaks.js'); -mocha.setup({ ui: 'bdd', reporter: 'spec' }); - -// Setup -phantom.injectJs('beforeeach.js'); - -// Tests -phantom.injectJs('..' + '/helpers/changeExtensionTooltip.spec.js'); - -// Execute -mocha.run(function (failures) { - // setTimeout is needed to supress "Unsafe JavaScript attempt to access..." - // see https://github.com/ariya/phantomjs/issues/12697 - setTimeout(function () { - phantom.exit(failures); - }, 0); -});