Skip to content

Commit

Permalink
adding manual trigger and a test
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ko committed Jun 6, 2024
1 parent 00ed461 commit d386509
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ jobs:
run: ./codecov upload-process -t ${{ secrets.CODECOV_TOKEN }} -n 'javascript'-${{ github.run_id }} -F 'javascript' -f coverage/coverage-final.json

- name: Trigger notifications
run: ./codecov send-notifications
run: ./codecov t ${{ secrets.CODECOV_TOKEN }} send-notifications
2 changes: 1 addition & 1 deletion .github/workflows/pr-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ jobs:
run: ./codecov upload-process -t ${{ secrets.CODECOV_TOKEN }} -n 'javascript'-${{ github.run_id }} -F 'javascript' -f coverage/coverage-final.json

- name: Trigger notifications
run: ./codecov send-notifications
run: ./codecov t ${{ secrets.CODECOV_TOKEN }} send-notifications

2 changes: 1 addition & 1 deletion resources/js/classes/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}

getMenuOptions() {
return ['menu options'];
return 'menu options';
}

getPersonalData() {
Expand Down
16 changes: 10 additions & 6 deletions resources/js/classes/person.test.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
import Person from "./person";

var author = new Person("Ricky", "56", "The Danger", "Bobby");
var person = new Person("Ricky", "56", "The Danger", "Bobby");

test("Person class", ()=>{
expect(author.getName()).toBe("Ricky")
expect(person.getName()).toBe("Ricky")
})

test("Person class", ()=>{
expect(author.getNickname()).toBe("The Danger")
expect(person.getNickname()).toBe("The Danger")
})

test("Person class", ()=>{
expect(author.getLastName()).toBe("Bobby")
expect(person.getLastName()).toBe("Bobby")
})

test("Person class", ()=>{
expect(author.getEleven()).toBe(11)
expect(person.getEleven()).toBe(11)
})

test("Person class", ()=>{
expect(author.getAccessLevel()).toBe('admin');
expect(person.getAccessLevel()).toBe('admin');
})

test("Person class", ()=>{
expect(person.getMenuOptions()).toBe('menu items');
})

0 comments on commit d386509

Please sign in to comment.