cloudstack/ui/tests/mockData/ActionButton.mock.json
Hoang Nguyen 338de72665 Explore Test Automation (#320)
* config jest and add setup for unittest

* config jest coverage

* example of unit testing a Status widget/component

* add license for test file

* add test/run command in the .travis.yml

* add mock store and i18n for vue jest

* add mock file missing

* add mock router

* add lincence to mock file & decodeHtml to setup file

* add mock axios instance & fix eslint on tests folder

* add test components > views > ActionButton component

* fix for test coverage success

* refactor test file

* add test Views > Autogenview.vue (Navigation Guard, Watchers, Computed)

* history mode mockRouter, refactor test code, test Autogenview > fetchData (routeName)

* test Views > AutogenView.vue (processing 31%)

* add mock router exception & test Views > AutogenView.vue (processing 43%)

* test Views > AutogenView (processing 65%), add test onSearch, closeAction, execAction, listUuidOpts

* refactor and add comment test files

* test Views > AutogenView (processing 91%)

* add comment file AutogenView.spec.js

* test Views > AutogenView.vue (handleSubmit method)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-20 07:06:24 +05:30

30 lines
555 B
JSON

{
"messages": {
"en": { "label.action": "action-en" },
"de": { "label.action": "action-de" }
},
"apis": {
"test-api-case-1": {},
"test-api-case-2": {},
"test-api-case-3": {},
"test-api-case-4": {},
"test-api-case-5": {},
"test-api-case-6": {}
},
"routes": [
{
"name": "testRouter1",
"path": "/test-router-1",
"meta": {
"name": "systemvm"
}
},
{
"name": "testRouter2",
"path": "/test-router-2",
"meta": {
"name": "test-name"
}
}
]
}