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 authored and petermetz committed Nov 23, 2021
1 parent 10344b5 commit e1e8aee
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": "1.0.0-rc.2",
"description": "Dummy package for testing.",
"main": "index.js"
}

0 comments on commit e1e8aee

Please sign in to comment.