aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 15:22:42 -0500
committerGitHub <noreply@github.com>2020-02-22 15:22:42 -0500
commit897f2360be13db70ff2f533089ba8d38b0b744ed (patch)
treefdfdc9ed13fb38117e922d27c60616f159a2c63e /test
parentf8f03f3af0ab031cc58bf5ad3f782c8d45137430 (diff)
parent6513a15b3b5fd8586226c8823e2680478b97e132 (diff)
Merge pull request #363 from toasted-nutbread/eslint-stylistic-rules
Eslint stylistic rules
Diffstat (limited to 'test')
-rw-r--r--test/test-database.js10
-rw-r--r--test/test-schema.js8
2 files changed, 9 insertions, 9 deletions
diff --git a/test/test-database.js b/test/test-database.js
index 04ed8100..44f409dd 100644
--- a/test/test-database.js
+++ b/test/test-database.js
@@ -36,8 +36,8 @@ class XMLHttpRequest {
callbacks.push(callback);
}
- open(action, url) {
- this._url = url;
+ open(action, url2) {
+ this._url = url2;
}
send() {
@@ -116,10 +116,10 @@ function clearDatabase(timeout) {
(async () => {
const indexedDB = global.indexedDB;
for (const {name} of await indexedDB.databases()) {
- await new Promise((resolve, reject) => {
+ await new Promise((resolve2, reject2) => {
const request = indexedDB.deleteDatabase(name);
- request.onerror = (e) => reject(e);
- request.onsuccess = () => resolve();
+ request.onerror = (e) => reject2(e);
+ request.onsuccess = () => resolve2();
});
}
clearTimeout(timer);
diff --git a/test/test-schema.js b/test/test-schema.js
index ca4f56dd..8ca63167 100644
--- a/test/test-schema.js
+++ b/test/test-schema.js
@@ -30,7 +30,7 @@ function testValidate1() {
]
};
- const schemaValidate = (value, schema) => {
+ const schemaValidate = (value) => {
try {
JsonSchema.validate(value, schema);
return true;
@@ -48,7 +48,7 @@ function testValidate1() {
) &&
(
(
- (value % 3 )=== 0 ||
+ (value % 3) === 0 ||
(value % 5) === 0
) &&
(value % 15) !== 0
@@ -81,7 +81,7 @@ function testGetValidValueOrDefault1() {
const testData = [
[
- void(0),
+ void 0,
{test: 'default'}
],
[
@@ -210,7 +210,7 @@ function testGetValidValueOrDefault3() {
{test: 'value', test2: 2, test3: 10}
],
[
- {test: 'value', test2: 2, test3: void(0)},
+ {test: 'value', test2: 2, test3: void 0},
{test: 'value', test2: 2, test3: 10}
]
];