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