uci-wifi/test/delete.mjs

23 lines
514 B
JavaScript
Raw Normal View History

import clean from '../src/delete'
import tc from '@uci/try-catch'
// const SSID='test'
// const PASSWORD='thisisatest'
// const IFACE='wlx801f029be2a2'
const SSID='zoesplace'
;
(async () => {
let ret = null
let ap = {ssid:SSID,password:PASSWORD, iface:IFACE}
ret = await tc(clean)({name:SSID})
if (ret.err) console.log('make error message payload to return', ret.err)
console.log('clean attempt response => ',ret.res)
})().catch(err => {
console.error('======Caught Error!==========\n',err)
})