Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit cbb743e

Browse files
committed
Add missing ostrich bindings mock
1 parent 11dd212 commit cbb743e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Mocked OSTRICH package
2+
let store;
3+
module.exports = {
4+
__setMockedDocument: function(storeArg) {
5+
store = storeArg;
6+
},
7+
fromPath: function (file) {
8+
if (!file) {
9+
return Promise.reject(new Error('File not found'))
10+
} else {
11+
return Promise.resolve(store);
12+
}
13+
}
14+
};

0 commit comments

Comments
 (0)