stable

Clone or download

Read-only

Unit test Git repositories vue app

This is part of story #10408 - have a burning parrot git repository list Some tests are missing for rest-querier.js because we have a conflict of mocks. Plus, the callback system in getRepositoriesList makes it harder to test. How to test: - npm run test | watch | coverage works like in all the other js apps - Jenkins plays the UT during the CI validation Change-Id: Ifb259d9983ab4f4ed68a9f154c7ffce6af3281fa

Modified Files

Name
M .gitignore +2 −0 Go to diff View file
M package-lock.json +139 −0 Go to diff View file
M package.json +1 −0 Go to diff View file
A plugins/git/www/scripts/karma.conf.js +41 −0 Go to diff View file
M plugins/git/www/scripts/package.json +3 −1 Go to diff View file
A plugins/git/www/scripts/repositories/src/app.spec.js +5 −0 Go to diff View file
M plugins/git/www/scripts/repositories/src/store/actions.js +3 −3 Go to diff View file
A plugins/git/www/scripts/repositories/src/store/actions.spec.js +151 −0 Go to diff View file
A plugins/git/www/scripts/repositories/src/store/mutations.spec.js +81 −0 Go to diff View file
M plugins/git/www/scripts/webpack.config.js +18 −31 Go to diff View file
M tests/Jenkinsfile +1 −0 Go to diff View file
M tools/utils/scripts/webpack-aliases.js +14 −16 Go to diff View file