From 95c73738fabdc8986e21715c3d29478c60bcc9ef Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Fri, 2 Sep 2022 22:24:11 +0200 Subject: [PATCH] Update ESLint globals syntax --- test/general/brainpool.js | 2 +- test/general/key.js | 2 +- test/general/openpgp.js | 2 +- test/general/signature.js | 2 +- test/worker/application_worker.js | 2 +- test/worker/worker_example.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/general/brainpool.js b/test/general/brainpool.js index c432b766..fbcc9b94 100644 --- a/test/general/brainpool.js +++ b/test/general/brainpool.js @@ -1,4 +1,4 @@ -/* globals tryTests: true */ +/* globals tryTests */ const { use: chaiUse, expect } = require('chai'); chaiUse(require('chai-as-promised')); diff --git a/test/general/key.js b/test/general/key.js index c75aaa3e..7bf66805 100644 --- a/test/general/key.js +++ b/test/general/key.js @@ -1,5 +1,5 @@ /* eslint-disable max-lines */ -/* globals tryTests: true */ +/* globals tryTests */ const { use: chaiUse, expect } = require('chai'); chaiUse(require('chai-as-promised')); diff --git a/test/general/openpgp.js b/test/general/openpgp.js index cfebc1e0..1ae43b01 100644 --- a/test/general/openpgp.js +++ b/test/general/openpgp.js @@ -1,5 +1,5 @@ /* eslint-disable max-lines */ -/* globals tryTests: true, loadStreamsPolyfill */ +/* globals tryTests, loadStreamsPolyfill */ const spy = require('sinon/lib/sinon/spy'); const stream = require('@openpgp/web-stream-tools'); const { use: chaiUse, expect } = require('chai'); diff --git a/test/general/signature.js b/test/general/signature.js index 5c123d7c..75468fb8 100644 --- a/test/general/signature.js +++ b/test/general/signature.js @@ -1,5 +1,5 @@ /* eslint-disable max-lines */ -/* globals tryTests: true, loadStreamsPolyfill */ +/* globals tryTests, loadStreamsPolyfill */ const stream = require('@openpgp/web-stream-tools'); const { use: chaiUse, expect } = require('chai'); chaiUse(require('chai-as-promised')); diff --git a/test/worker/application_worker.js b/test/worker/application_worker.js index 0d096613..cbd1fa94 100644 --- a/test/worker/application_worker.js +++ b/test/worker/application_worker.js @@ -1,4 +1,4 @@ -/* globals tryTests: true */ +/* globals tryTests */ const { expect } = require('chai'); diff --git a/test/worker/worker_example.js b/test/worker/worker_example.js index b5b76341..fbd2cee1 100644 --- a/test/worker/worker_example.js +++ b/test/worker/worker_example.js @@ -1,4 +1,4 @@ -/* globals openpgp: true */ +/* globals openpgp */ importScripts('../../dist/openpgp.js');