embark-area-51/lib/modules/coverage/index.js

19 lines
414 B
JavaScript
Raw Normal View History

2018-08-01 15:48:17 +00:00
class CodeCoverage {
2018-08-01 16:08:47 +00:00
constructor(embark, _options) {
2018-08-01 15:48:17 +00:00
this.events = embark.events;
this.logger = embark.logger;
2018-08-01 16:08:47 +00:00
embark.registerActionForEvent('contracts:deploy:afterAll', this.deployed.bind(this));
}
deployed(cb) {
this.events.request('contracts:list', (error, contracts) => {
console.dir(error);
console.dir(contracts);
cb();
});
2018-08-01 15:48:17 +00:00
}
}
2018-08-01 16:08:47 +00:00
module.exports = CodeCoverage;