-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevicectl-specs.ts
More file actions
72 lines (60 loc) · 1.98 KB
/
devicectl-specs.ts
File metadata and controls
72 lines (60 loc) · 1.98 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { expect } from 'chai';
import { Devicectl } from '../../lib/devicectl';
describe('Devicectl', function () {
let devicectl: Devicectl;
beforeEach(function () {
devicectl = new Devicectl('test-device-udid');
});
describe('constructor', function () {
it('should create a Devicectl instance with the provided UDID and default logger', function () {
expect(devicectl.udid).to.equal('test-device-udid');
});
});
describe('execute', function () {
it('should throw an error when command execution fails', async function () {
// This test would need to be mocked in a real implementation
// For now, we'll just test that the method exists
expect(devicectl.execute).to.be.a('function');
});
});
describe('sendMemoryWarning', function () {
it('should be a function', function () {
expect(devicectl.sendMemoryWarning).to.be.a('function');
});
});
describe('listProcesses', function () {
it('should be a function', function () {
expect(devicectl.listProcesses).to.be.a('function');
});
});
describe('listFiles', function () {
it('should be a function', function () {
expect(devicectl.listFiles).to.be.a('function');
});
});
describe('pullFile', function () {
it('should be a function', function () {
expect(devicectl.pullFile).to.be.a('function');
});
});
describe('sendSignalToProcess', function () {
it('should be a function', function () {
expect(devicectl.sendSignalToProcess).to.be.a('function');
});
});
describe('listApps', function () {
it('should be a function', function () {
expect(devicectl.listApps).to.be.a('function');
});
});
describe('launchApp', function () {
it('should be a function', function () {
expect(devicectl.launchApp).to.be.a('function');
});
});
describe('listDevices', function () {
it('should be a function', function () {
expect(devicectl.listDevices).to.be.a('function');
});
});
});