git ssb

0+

bencevans / huawei-mifi



Tree: 59b142eb77d43824a0cd73b904b0187d20bb94f1

Files: 59b142eb77d43824a0cd73b904b0187d20bb94f1 / test.js

558 bytesRaw
1const test = require('tape')
2const MiFi = require('.')
3
4let client
5
6test('create client and auth', async t => {
7 client = new MiFi('192.168.8.1')
8 await client.authenticate()
9 t.end()
10})
11
12test('get status', async t => {
13 const status = await client.status()
14 console.log(status)
15 t.end()
16})
17
18test('get traffic stats', async t => {
19 const status = await client.traffic()
20 console.log(status)
21 t.end()
22})
23
24test('check notifications', async t => {
25 const status = await client.notifications()
26 console.log(status)
27 t.end()
28})

Built with git-ssb-web