first tests
continuous-integration/drone/push Build is passing Details

master
Tony Fages 1 year ago
parent d187888198
commit fe5d58285e

@ -18,4 +18,5 @@
commands:
- cd JokesApp
- npm install
- sonar-scanner -Dsonar.projectKey=$${project_key} -Dsonar.sources=. -Dsonar.host.url=$${sonar_host} -Dsonar.login=$${sonar_token}
- npm run test
- sonar-scanner -Dsonar.projectKey=$${project_key} -Dsonar.sources=. -Dsonar.host.url=$${sonar_host} -Dsonar.login=$${sonar_token} -Dsonar.javascript.lcov.reportPaths=/lcov.info -Dsonar.exclusions=/coverage//*,/tests/*/

4
.gitignore vendored

@ -419,7 +419,8 @@ FodyWeavers.xsd
.LSOverride
# Icon must end with two \r
Icon
Icon
# Thumbnails
._*
@ -440,3 +441,4 @@ Network Trash Folder
Temporary Items
.apdisk
coverage

@ -10,7 +10,7 @@ import {
} from "../../redux/actions/customAction";
describe('Action Tests', () => {
describe('Action tests', () => {
it('setPostJoke creates correct action', () => {
const postJoke = new CustomJoke('test', 'Why did the chicken...', 'To get to the other side!', 'http://www.jokes.com/joke1', "1");
const expectedAction = {
Loading…
Cancel
Save