Add jest to all tests

This commit is contained in:
Christian Cueni 2019-08-13 11:10:01 +02:00
parent 0c41631cc1
commit 3918d170f9
2 changed files with 4 additions and 6 deletions

View File

@ -62,26 +62,26 @@ pipelines:
default:
- step: *unittest-python
- step: *cypress-test
- step: *jest-test
branches:
master:
- step: *unittest-python
- step: *cypress-test
- step: *jest-test
develop:
- step: *unittest-python
- step: *cypress-test
- step: *jest-test
- step:
name: deploy to stage on Heroku
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-stage.git develop:master
feature/jest-tests:
- step: *cypress-test
- step: *jest-test
custom:
prod:
- step: *unittest-python
- step: *cypress-test
- step: *jest-test
- step: *deploy-prod

View File

@ -11,9 +11,7 @@ describe('ModuleNavigation.vue', () => {
propsData: props
});
let arrayToFlatten = [[1], [2, 3], [4, 5, 6], [7]]
let flattenedArray = wrapper.vm.flattenArray(arrayToFlatten);
expect(flattenedArray).toEqual([1, 2, 3, 4, 5, 6, 7]);
});