mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 10:28:33 -07:00
a93838be15
Also fixed `new (` and `formatter` by hand.
14 lines
475 B
JavaScript
14 lines
475 B
JavaScript
const logger = require('../lib/util/logger');
|
|
|
|
module.exports = {
|
|
stubLogger: (sandbox) => {
|
|
sandbox.stub(logger, 'info').callsFake(() => {});
|
|
sandbox.stub(logger, 'warn').callsFake(() => {});
|
|
sandbox.stub(logger, 'debug').callsFake(() => {});
|
|
sandbox.stub(logger, 'error').callsFake(() => {});
|
|
},
|
|
zigbeeMessage: (device, cid, type, data, epId) => {
|
|
return {data: {cid, data}, type, endpoints: [{device, epId}]};
|
|
},
|
|
};
|