Skip to content

Commit c10b203

Browse files
committed
More cleanup
JIRA: WT-668
1 parent 2ba901e commit c10b203

File tree

3 files changed

+0
-94
lines changed

3 files changed

+0
-94
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ jobs:
159159

160160
- name: Codecov
161161
uses: codecov/[email protected]
162-
with:
163-
file: ./coverage/lcov.info
164-
fail_ci_if_error: true
165-
verbose: true
166162

167163
build-zap:
168164
name: Build ZAP

test/actions.test.js

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@
1717
*/
1818

1919
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-
]
3320

3421
jest.mock('../src/boot/axios', () => ({
3522
axiosRequests: {
@@ -146,18 +133,6 @@ describe('zap actions', () => {
146133
}
147134
})
148135

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-
161136
it('updateClusters should call $serverGet and commit updateClusters', async () => {
162137
await actions.updateClusters(context)
163138
expect(context.commit).toHaveBeenCalledWith(
@@ -463,34 +438,4 @@ describe('zap actions', () => {
463438
}
464439
})
465440
})
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-
})
496441
})

test/ui.test.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -407,41 +407,6 @@ describe('Component mounting test', () => {
407407
timeout.short()
408408
)
409409

410-
test(
411-
'ZapConfig renders and requests package selection',
412-
async () => {
413-
const wrapper = shallowMount(ZapConfig, {
414-
global: {
415-
plugins: [ZapStore()],
416-
mocks: {
417-
$serverPost: jest.fn(() =>
418-
Promise.resolve({
419-
data: {
420-
zclProperties: [],
421-
zclGenTemplates: [],
422-
filePath: '',
423-
open: false,
424-
zapFilePackages: [],
425-
zapFileExtensions: [],
426-
sessions: []
427-
}
428-
})
429-
),
430-
$serverGet: jest.fn(() =>
431-
Promise.resolve({ data: { warningMap: {}, errorMap: {} } })
432-
),
433-
$q: { loading: { show: jest.fn(), hide: jest.fn() } },
434-
$router: { push: jest.fn() }
435-
}
436-
}
437-
})
438-
expect(wrapper.html().toLowerCase()).toContain(
439-
'warning: please select atleast one package each from zcl metadata and templates.'
440-
)
441-
},
442-
timeout.short()
443-
)
444-
445410
test(
446411
'ZapConfig submitForm triggers navigation',
447412
async () => {

0 commit comments

Comments
 (0)