diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 9bfbae65..c0e87a7a 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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 diff --git a/client/tests/unit/module-navigation.spec.js b/client/tests/unit/module-navigation.spec.js index c9a9540b..af699b44 100644 --- a/client/tests/unit/module-navigation.spec.js +++ b/client/tests/unit/module-navigation.spec.js @@ -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]); });