Skip to content

Commit

Permalink
fix: added a dummy package
Browse files Browse the repository at this point in the history
added a dummy package for tests about install packages from github
sources required for #1210

Signed-off-by: Elena Izaguirre <e.izaguirre.equiza@accenture.com>
  • Loading branch information
elenaizaguirre committed Nov 17, 2021
1 parent 3d63b14 commit 357e61c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class DummyPlugin {
onPluginInit() {
console.log("DummyPlugin#onPluginInit() OK");
return Promise.resolve();
}
getInstanceId() {
console.log("DummyPlugin#getInstanceId() OK");
return "dummy_instance_id";
}
getPackageName() {
console.log("DummyPlugin#getPackageName() OK");
return "@hyperledger/cactus-dummy-package";
}
}

class DummyPluginFactory {
create() {
return Promise.resolve(new DummyPlugin());
}
}

module.exports.createPluginFactory = (options) => {
return Promise.resolve(new DummyPluginFactory(options));
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@hyperledger/cactus-dummy-package",
"version": "0.0.1",
"description": "Dummy package for testing.",
"main": "index.js"
}

0 comments on commit 357e61c

Please sign in to comment.