aboutsummaryrefslogtreecommitdiff
path: root/src/memidb-test.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-10-15 19:28:35 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-10-15 20:30:33 +0200
commit8b2f53e3ed810a0539f76feb993f0044bc8c0f38 (patch)
treef88687b498f133e8e7c0743def7ef7929f6173c6 /src/memidb-test.ts
parent353eeca339e060eb4a03e0b67343086854a5e5d7 (diff)
fix tslint warnings
Diffstat (limited to 'src/memidb-test.ts')
-rw-r--r--src/memidb-test.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/memidb-test.ts b/src/memidb-test.ts
index 8f8498a6e..b6e4792d3 100644
--- a/src/memidb-test.ts
+++ b/src/memidb-test.ts
@@ -30,13 +30,13 @@ test.cb("db open", (t) => {
t.is(evt.newVersion, 1);
t.truthy(req.result);
t.pass();
- }
+ };
req.onsuccess = (evt) => {
t.is(ncb, 1);
t.is(req.result, evt.target);
t.truthy(req.result);
t.end();
- }
+ };
});
test.cb("store creation", (t) => {
@@ -57,10 +57,10 @@ test.cb("store creation", (t) => {
t.is(store3.name, "c-store");
t.deepEqual(Array.from(db.objectStoreNames), ["a-store", "b-store", "c-store"]);
t.pass();
- }
+ };
req.onsuccess = (evt) => {
t.end();
- }
+ };
});
@@ -71,10 +71,10 @@ test.cb("put and get", (t) => {
const db: IDBDatabase = req.result;
const store1 = db.createObjectStore("mystore");
store1.put({answer: 42}, "a");
- }
+ };
req.onsuccess = (evt) => {
- t.end()
- }
+ t.end();
+ };
});
@@ -88,7 +88,7 @@ test("key path evaluation", (t) => {
b: "hello",
"": "spam",
arr: ["foo", "bar"],
- }
+ };
t.deepEqual(memidb.evaluateKeyPath(obj, ""), obj);
t.deepEqual(memidb.evaluateKeyPath(obj, "a.b.c"), 42);
t.deepEqual(memidb.evaluateKeyPath(obj, "a.b"), {c: 42});
@@ -106,7 +106,7 @@ test("key path evaluation with replacement", (t) => {
c: 42,
},
},
- }
+ };
memidb.evaluateKeyPath(obj, "a.b.c", 24);
t.is(obj.a.b.c, 24);
memidb.evaluateKeyPath(obj, "a.b", 24);