git ssb

0+

bencevans / huawei-mifi



Tree: 0c4c44e351d3e0240f07f863907e8cd50528e40e

Files: 0c4c44e351d3e0240f07f863907e8cd50528e40e / 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