agent-gear 1.0.4 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,9 @@ vi.mock('../src/config.js', () => ({
21
21
  clearConfigKey: vi.fn(),
22
22
  saveKeyToConfig: vi.fn(),
23
23
  saveEndpointToConfig: vi.fn(),
24
+ getResumeTokenFromConfig: vi.fn(),
25
+ saveResumeTokenToConfig: vi.fn(),
26
+ clearResumeTokenFromConfig: vi.fn(),
24
27
  }));
25
28
 
26
29
  vi.mock('os', () => ({
@@ -101,7 +104,8 @@ describe('SocketIO Client', () => {
101
104
  expect(mockSocket.emit).toHaveBeenCalledWith('register', {
102
105
  key: 'zag_k_1_abc123',
103
106
  hostname: 'my-machine',
104
- version: '1.0.4',
107
+ version: '1.1.1',
108
+ resumeToken: undefined,
105
109
  });
106
110
  });
107
111
 
@@ -116,7 +120,8 @@ describe('SocketIO Client', () => {
116
120
  expect(mockSocket.emit).toHaveBeenCalledWith('register', {
117
121
  key: 'zag_k_1_abc123',
118
122
  hostname: 'test-machine',
119
- version: '1.0.4',
123
+ version: '1.1.1',
124
+ resumeToken: undefined,
120
125
  });
121
126
  });
122
127