summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/Storage_test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/Storage_test.js b/src/test/Storage_test.js
index c0a5af8..6c16c75 100644
--- a/src/test/Storage_test.js
+++ b/src/test/Storage_test.js
@@ -56,6 +56,13 @@
async () => await eq("small2", "k", 3),
async () => await eq("bigObject", "k0000", "v0000"),
async () => await eq("hugeObject", "k0001", "v0001"),
+ async () => {
+ let key = "bigObject";
+ let wasChunked = await Storage.isChunked(key);
+ await Storage.set("sync", {[key]: {tiny: "prop"}});
+ return wasChunked && !(await Storage.isChunked(key));
+ },
+ async () => eq("bigObject", "tiny", "prop"),
async () => {
await Storage.remove("sync", keys);
let myItems = await Storage.get("sync", keys);