-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
58 lines (42 loc) · 1.12 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import test from 'ava';
import alfyTest from 'alfy-test';
test('Capacity', async t => {
const alfy = alfyTest();
const result = await alfy('Chargin');
t.is(typeof result, 'object');
});
test('Charging', async t => {
const alfy = alfyTest();
const result = await alfy('Chargin');
t.is(typeof result, 'object');
});
test('Cycle', async t => {
const alfy = alfyTest();
const result = await alfy('Cycles');
t.is(typeof result, 'object');
});
test('Level', async t => {
const alfy = alfyTest();
const result = await alfy('Level');
t.is(typeof result, 'object');
});
test('fullyCharged', async t => {
const alfy = alfyTest();
const result = await alfy('Fully Charged');
t.is(typeof result, 'object');
});
test('Serial number', async t => {
const alfy = alfyTest();
const result = await alfy('Serial');
t.is(typeof result, 'object');
});
test('timeRemaining', async t => {
const alfy = alfyTest();
const result = await alfy('Time remaining');
t.is(typeof result, 'object');
});
test('temperature', async t => {
const alfy = alfyTest();
const result = await alfy('Temperature');
t.is(typeof result, 'object');
});