aboutsummaryrefslogtreecommitdiff
path: root/packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-09 15:26:18 +0200
committerFlorian Dold <florian@dold.me>2021-06-09 15:26:18 +0200
commit3d2b7b2a65787858c9471bc48cc5860c07b7f7dc (patch)
tree4a7477c184de7408104b8bf254a277a5949b19de /packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts
parent5c26461247040c07c86291babf0c87631df638b5 (diff)
downloadwallet-core-3d2b7b2a65787858c9471bc48cc5860c07b7f7dc.tar.xz
formatting: re-run prettier
Diffstat (limited to 'packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts')
-rw-r--r--packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts65
1 files changed, 39 insertions, 26 deletions
diff --git a/packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts b/packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts
index 0f0713d1d..c4bce8743 100644
--- a/packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts
+++ b/packages/idb-bridge/src/idb-wpt-ported/cursor-overloads.test.ts
@@ -28,76 +28,85 @@ test.cb("WPT test cursor-overloads.htm", (t) => {
await checkCursorDirection(store.openCursor(), "next");
await checkCursorDirection(store.openCursor(0), "next");
- await checkCursorDirection(store.openCursor(0, 'next'), "next");
- await checkCursorDirection(store.openCursor(0, 'nextunique'), "nextunique");
- await checkCursorDirection(store.openCursor(0, 'prev'), "prev");
- await checkCursorDirection(store.openCursor(0, 'prevunique'), "prevunique");
+ await checkCursorDirection(store.openCursor(0, "next"), "next");
+ await checkCursorDirection(store.openCursor(0, "nextunique"), "nextunique");
+ await checkCursorDirection(store.openCursor(0, "prev"), "prev");
+ await checkCursorDirection(store.openCursor(0, "prevunique"), "prevunique");
await checkCursorDirection(store.openCursor(IDBKeyRange.only(0)), "next");
await checkCursorDirection(
- store.openCursor(BridgeIDBKeyRange.only(0), 'next'),
+ store.openCursor(BridgeIDBKeyRange.only(0), "next"),
"next",
);
await checkCursorDirection(
- store.openCursor(IDBKeyRange.only(0), 'nextunique'),
+ store.openCursor(IDBKeyRange.only(0), "nextunique"),
"nextunique",
);
await checkCursorDirection(
- store.openCursor(IDBKeyRange.only(0), 'prev'),
+ store.openCursor(IDBKeyRange.only(0), "prev"),
"prev",
);
await checkCursorDirection(
- store.openCursor(IDBKeyRange.only(0), 'prevunique'),
+ store.openCursor(IDBKeyRange.only(0), "prevunique"),
"prevunique",
);
await checkCursorDirection(index.openCursor(), "next");
await checkCursorDirection(index.openCursor(0), "next");
- await checkCursorDirection(index.openCursor(0, 'next'), "next");
- await checkCursorDirection(index.openCursor(0, 'nextunique'), "nextunique");
- await checkCursorDirection(index.openCursor(0, 'prev'), "prev");
- await checkCursorDirection(index.openCursor(0, 'prevunique'), "prevunique");
+ await checkCursorDirection(index.openCursor(0, "next"), "next");
+ await checkCursorDirection(index.openCursor(0, "nextunique"), "nextunique");
+ await checkCursorDirection(index.openCursor(0, "prev"), "prev");
+ await checkCursorDirection(index.openCursor(0, "prevunique"), "prevunique");
await checkCursorDirection(index.openCursor(IDBKeyRange.only(0)), "next");
await checkCursorDirection(
- index.openCursor(IDBKeyRange.only(0), 'next'),
+ index.openCursor(IDBKeyRange.only(0), "next"),
"next",
);
await checkCursorDirection(
- index.openCursor(IDBKeyRange.only(0), 'nextunique'),
+ index.openCursor(IDBKeyRange.only(0), "nextunique"),
"nextunique",
);
await checkCursorDirection(
- index.openCursor(IDBKeyRange.only(0), 'prev'),
+ index.openCursor(IDBKeyRange.only(0), "prev"),
"prev",
);
await checkCursorDirection(
- index.openCursor(IDBKeyRange.only(0), 'prevunique'),
+ index.openCursor(IDBKeyRange.only(0), "prevunique"),
"prevunique",
);
await checkCursorDirection(index.openKeyCursor(), "next");
await checkCursorDirection(index.openKeyCursor(0), "next");
- await checkCursorDirection(index.openKeyCursor(0, 'next'), "next");
- await checkCursorDirection(index.openKeyCursor(0, 'nextunique'), "nextunique");
- await checkCursorDirection(index.openKeyCursor(0, 'prev'), "prev");
- await checkCursorDirection(index.openKeyCursor(0, 'prevunique'), "prevunique");
+ await checkCursorDirection(index.openKeyCursor(0, "next"), "next");
+ await checkCursorDirection(
+ index.openKeyCursor(0, "nextunique"),
+ "nextunique",
+ );
+ await checkCursorDirection(index.openKeyCursor(0, "prev"), "prev");
+ await checkCursorDirection(
+ index.openKeyCursor(0, "prevunique"),
+ "prevunique",
+ );
- await checkCursorDirection(index.openKeyCursor(IDBKeyRange.only(0)), "next");
await checkCursorDirection(
- index.openKeyCursor(IDBKeyRange.only(0), 'next'),
+ index.openKeyCursor(IDBKeyRange.only(0)),
"next",
);
await checkCursorDirection(
- index.openKeyCursor(IDBKeyRange.only(0), 'nextunique'),
+ index.openKeyCursor(IDBKeyRange.only(0), "next"),
+ "next",
+ );
+ await checkCursorDirection(
+ index.openKeyCursor(IDBKeyRange.only(0), "nextunique"),
"nextunique",
);
await checkCursorDirection(
- index.openKeyCursor(IDBKeyRange.only(0), 'prev'),
+ index.openKeyCursor(IDBKeyRange.only(0), "prev"),
"prev",
);
await checkCursorDirection(
- index.openKeyCursor(IDBKeyRange.only(0), 'prevunique'),
+ index.openKeyCursor(IDBKeyRange.only(0), "prevunique"),
"prevunique",
);
@@ -110,7 +119,11 @@ test.cb("WPT test cursor-overloads.htm", (t) => {
): Promise<void> {
return new Promise<void>((resolve, reject) => {
request.onsuccess = function (event: any) {
- t.notDeepEqual(event.target.result, null, "Check the result is not null");
+ t.notDeepEqual(
+ event.target.result,
+ null,
+ "Check the result is not null",
+ );
t.deepEqual(
event.target.result.direction,
direction,