Skip to content

Commit

Permalink
Merge pull request #143 from actions/fix-tests
Browse files Browse the repository at this point in the history
fix tests to account for api change
  • Loading branch information
mattcosta7 committed Jun 30, 2022
2 parents 92eaaea + 80b198c commit 5d3a082
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ jobs:
npm install
- run: |
npm run build
- run: |
npm run test
16 changes: 8 additions & 8 deletions __tests__/add-to-project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,17 +266,17 @@ describe('addToProject', () => {
test: /getProject/,
return: {
organization: {
projectNext: {
projectV2: {
id: 'project-next-id'
}
}
}
},
{
test: /addProjectNextItem/,
test: /addProjectV2ItemById/,
return: {
addProjectNextItem: {
projectNextItem: {
addProjectV2ItemById: {
item: {
id: 'project-next-item-id'
}
}
Expand Down Expand Up @@ -559,17 +559,17 @@ describe('addToProject', () => {
test: /getProject/,
return: {
organization: {
projectNext: {
projectV2: {
id: 'project-next-id'
}
}
}
},
{
test: /addProjectNextItem/,
test: /addProjectV2ItemById/,
return: {
addProjectNextItem: {
projectNextItem: {
addProjectV2ItemById: {
item: {
id: 'project-next-item-id'
}
}
Expand Down

0 comments on commit 5d3a082

Please sign in to comment.