about summary refs log tree commit diff
path: root/__mocks__
diff options
context:
space:
mode:
Diffstat (limited to '__mocks__')
-rw-r--r--__mocks__/multiformats/cid.js3
-rw-r--r--__mocks__/multiformats/hashes/hasher.js7
2 files changed, 10 insertions, 0 deletions
diff --git a/__mocks__/multiformats/cid.js b/__mocks__/multiformats/cid.js
new file mode 100644
index 000000000..788505c18
--- /dev/null
+++ b/__mocks__/multiformats/cid.js
@@ -0,0 +1,3 @@
+export const CID = jest.fn().mockImplementation(() => {
+  return {}
+})
diff --git a/__mocks__/multiformats/hashes/hasher.js b/__mocks__/multiformats/hashes/hasher.js
new file mode 100644
index 000000000..a525f1310
--- /dev/null
+++ b/__mocks__/multiformats/hashes/hasher.js
@@ -0,0 +1,7 @@
+export const from = jest.fn().mockImplementation(() => {
+  return {
+    digest: jest.fn().mockImplementation(() => {
+      return Promise.resolve('')
+    }),
+  }
+})