From 14d7864011737fb1977bbe89401c3f510ccfdd6f Mon Sep 17 00:00:00 2001 From: Philip Walton Date: Tue, 31 Oct 2017 18:06:28 -0700 Subject: [PATCH] Return the key for add and put calls --- lib/mock.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mock.js b/lib/mock.js index ee73883..385c62b 100644 --- a/lib/mock.js +++ b/lib/mock.js @@ -813,6 +813,7 @@ const storage = {}; // Root storage. const records = transaction._data[storeName].records; records.set(key, value); + return key; }); }