From 80b198ce77f05b28d9d2a12f8690137c068fec99 Mon Sep 17 00:00:00 2001 From: Matthew Costabile Date: Thu, 30 Jun 2022 13:13:58 +0000 Subject: [PATCH] fix tests to account for api change --- .github/workflows/test.yml | 2 ++ __tests__/add-to-project.test.ts | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b379246..7f316b18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,3 +18,5 @@ jobs: npm install - run: | npm run build + - run: | + npm run test diff --git a/__tests__/add-to-project.test.ts b/__tests__/add-to-project.test.ts index c6a7cf8b..bbb03839 100644 --- a/__tests__/add-to-project.test.ts +++ b/__tests__/add-to-project.test.ts @@ -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' } } @@ -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' } }