Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
after(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-003'),
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'Mote001')
],
done
);
});
after(function (done) {
async.series([
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'lora_unprovisioned_device:LoraDeviceGroup'),
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'lora_unprovisioned_device2:LoraDeviceGroup')
], done);
});
after(function (done) {
async.series([
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-003'),
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-001')
], done);
});
after(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(
utils.deleteEntityCB,
iotAgentConfig.iota.contextBroker,
service,
subservice,
'lora_unprovisioned_device:LoraDeviceGroup'
),
async.apply(
utils.deleteEntityCB,
iotAgentConfig.iota.contextBroker,
service,
subservice,
'lora_unprovisioned_device2:LoraDeviceGroup'
)
],
after(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(
utils.deleteEntityCB,
iotAgentConfig.iota.contextBroker,
service,
subservice,
'lora_unprovisioned_device:LoraDeviceGroup'
),
async.apply(
utils.deleteEntityCB,
iotAgentConfig.iota.contextBroker,
service,
subservice,
'lora_unprovisioned_device2:LoraDeviceGroup'
)
],
after(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-003'),
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-001')
],
done
);
});
afterEach(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(
utils.deleteEntityCB,
iotAgentConfig.iota.contextBroker,
service,
subservice,
'lora_unprovisioned_device:LoraDeviceGroup'
)
],
done
);
});
afterEach(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(
utils.deleteEntityCB,
iotAgentConfig.iota.contextBroker,
service,
subservice,
'lora_unprovisioned_device:LoraDeviceGroup'
)
],
done
);
});
after(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-003'),
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-001')
],
done
);
});
after(function(done) {
async.series(
[
iotAgentLib.clearAll,
iotagentLora.stop,
async.apply(utils.deleteEntityCB, iotAgentConfig.iota.contextBroker, service, subservice, 'LORA-N-003')
],
done
);
});