From fe92a4fa29f02e453898856f3a983c7804995c7c Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@tiolive.com>
Date: Thu, 5 Sep 2013 09:28:20 +0200
Subject: [PATCH] localstorage storage response hash renamed to digest

---
 src/jio.storage/localstorage.js        | 2 +-
 test/jio.storage/localstorage.tests.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/jio.storage/localstorage.js b/src/jio.storage/localstorage.js
index cf17103..cc654b2 100644
--- a/src/jio.storage/localstorage.js
+++ b/src/jio.storage/localstorage.js
@@ -243,7 +243,7 @@
                             param._attachment, e.target.result);
       that._storage.setItem(that._localpath + "/" + param._id, doc);
       command.success(status,
-                      {"hash": doc._attachments[param._attachment].digest});
+                      {"digest": doc._attachments[param._attachment].digest});
     }, function (e) {
       command.error(
         "request_timeout",
diff --git a/test/jio.storage/localstorage.tests.js b/test/jio.storage/localstorage.tests.js
index 4e24ae5..05b5d08 100644
--- a/test/jio.storage/localstorage.tests.js
+++ b/test/jio.storage/localstorage.tests.js
@@ -315,7 +315,7 @@
 
         deepEqual(answer, {
           "attachment": "putattmt2",
-          "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb9242" +
+          "digest": "sha256-e3b0c44298fc1c149afbf4c8996fb9242" +
             "7ae41e4649b934ca495991b7852b855", // hex_sha256("")
           "id": "putattmt1",
           "method": "putAttachment",
-- 
2.30.9