Corrected several typos in "Successfully" within log messages (#2697)

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
TilmanK 2020-01-08 19:29:22 +01:00 committed by Koen Kanters
parent 94d0253f27
commit 0df966755c
4 changed files with 4 additions and 4 deletions

View File

@ -365,7 +365,7 @@ class BridgeConfig extends BaseExtension {
const result = await this.zigbee.touchlinkFactoryReset();
if (result) {
logger.info('Succesfully factory reset device through Touchlink');
logger.info('Successfully factory reset device through Touchlink');
} else {
logger.warn('Failed to factory reset device through Touchlink');
}

View File

@ -97,7 +97,7 @@ class DeviceConfigure extends BaseExtension {
logger.info(`Configuring '${settingsDevice.friendlyName}'`);
try {
await mappedDevice.configure(device, this.coordinatorEndpoint);
logger.info(`Succesfully configured '${settingsDevice.friendlyName}'`);
logger.info(`Successfully configured '${settingsDevice.friendlyName}'`);
// eslint-disable-next-line
device.meta.configured = mappedDevice.meta.configureKey;
device.save();

View File

@ -87,7 +87,7 @@ class DeviceReport extends BaseExtension {
await ep.bind(cluster, this.coordinatorEndpoint);
await ep.configureReporting(cluster, configuration);
logger.info(
`Succesfully setup reporting for '${device.ieeeAddr}' - ${ep.ID} - ${cluster}`,
`Successfully setup reporting for '${device.ieeeAddr}' - ${ep.ID} - ${cluster}`,
);
}
}

View File

@ -394,7 +394,7 @@ describe('Bridge config', () => {
MQTT.events.message('zigbee2mqtt/bridge/config/touchlink/factory_reset', '');
await flushPromises();
expect(zigbeeHerdsman.touchlinkFactoryReset).toHaveBeenCalledTimes(1);
expect(logger.info).toHaveBeenCalledWith('Succesfully factory reset device through Touchlink');
expect(logger.info).toHaveBeenCalledWith('Successfully factory reset device through Touchlink');
});
it('Should allow to touchlink factory reset (FAILS)', async () => {