|
17 | 17 | */ |
18 | 18 |
|
19 | 19 | import * as actions from '../src/store/zap/actions.js' |
20 | | -const actionsModule = require('../src/store/zap/actions.js') |
21 | | - |
22 | | -const mockDeviceTypes = [ |
23 | | - { |
24 | | - id: 1, |
25 | | - code: 1, |
26 | | - profileId: 1, |
27 | | - label: 'Test', |
28 | | - caption: 'Test Device', |
29 | | - domain: 'test', |
30 | | - packageRef: 1 |
31 | | - } |
32 | | -] |
33 | 20 |
|
34 | 21 | jest.mock('../src/boot/axios', () => ({ |
35 | 22 | axiosRequests: { |
@@ -146,18 +133,6 @@ describe('zap actions', () => { |
146 | 133 | } |
147 | 134 | }) |
148 | 135 |
|
149 | | - it('updateExceptions should commit updateExceptions', () => { |
150 | | - actions.updateExceptions(context, { foo: 'bar' }) |
151 | | - expect(context.commit).toHaveBeenCalledWith('updateExceptions', { |
152 | | - foo: 'bar' |
153 | | - }) |
154 | | - }) |
155 | | - |
156 | | - it('updateInformationText should commit updateInformationText', async () => { |
157 | | - await actions.updateInformationText(context, 'info') |
158 | | - expect(context.commit).toHaveBeenCalledWith('updateInformationText', 'info') |
159 | | - }) |
160 | | - |
161 | 136 | it('updateClusters should call $serverGet and commit updateClusters', async () => { |
162 | 137 | await actions.updateClusters(context) |
163 | 138 | expect(context.commit).toHaveBeenCalledWith( |
@@ -463,34 +438,4 @@ describe('zap actions', () => { |
463 | 438 | } |
464 | 439 | }) |
465 | 440 | }) |
466 | | - |
467 | | - it('updateAttributes should commit updateAttributes', () => { |
468 | | - actions.updateAttributes(context, [1, 2]) |
469 | | - expect(context.commit).toHaveBeenCalledWith('updateAttributes', [1, 2]) |
470 | | - }) |
471 | | - |
472 | | - it('updateCommands should commit updateCommands', () => { |
473 | | - actions.updateCommands(context, [1, 2]) |
474 | | - expect(context.commit).toHaveBeenCalledWith('updateCommands', [1, 2]) |
475 | | - }) |
476 | | - |
477 | | - it('updateEvents should commit updateEvents', () => { |
478 | | - actions.updateEvents(context, [1, 2]) |
479 | | - expect(context.commit).toHaveBeenCalledWith('updateEvents', [1, 2]) |
480 | | - }) |
481 | | - |
482 | | - it('updateFeatures should commit updateFeatures', () => { |
483 | | - actions.updateFeatures(context, [1, 2]) |
484 | | - expect(context.commit).toHaveBeenCalledWith('updateFeatures', [1, 2]) |
485 | | - }) |
486 | | - |
487 | | - it('updateEndpointConfigs should commit updateEndpointConfigs', () => { |
488 | | - actions.updateEndpointConfigs(context, [1, 2]) |
489 | | - expect(context.commit).toHaveBeenCalledWith('updateEndpointConfigs', [1, 2]) |
490 | | - }) |
491 | | - |
492 | | - it('selectConfiguration should commit selectConfiguration', () => { |
493 | | - actions.selectConfiguration(context, 'config') |
494 | | - expect(context.commit).toHaveBeenCalledWith('selectConfiguration', 'config') |
495 | | - }) |
496 | 441 | }) |
0 commit comments