Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Feb 22, 2024
1 parent fb576a5 commit f47f4c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
8 changes: 1 addition & 7 deletions packages/api/src/routers/svc/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ export function integrationsServiceRouter() {
return
}

const syncAt = integration.syncedAt?.getTime() || 0
return enqueueExportAllItems(
integration.id,
integration.name,
syncAt,
authToken
)
return enqueueExportAllItems(integration.id, integration.user.id)
})
)
} catch (err) {
Expand Down
11 changes: 0 additions & 11 deletions packages/api/test/resolvers/integrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,6 @@ describe('Integrations resolvers', () => {
)
expect(res.body.data.setIntegration.integration.enabled).to.be.true
})

it('creates new cloud task to sync all existing articles and highlights', async () => {
const res = await graphqlRequest(
query(integrationId, integrationName, token),
authToken
)
const integration = await findIntegration({
id: res.body.data.setIntegration.integration.id,
}, loginUser.id)
expect(integration?.taskName).not.to.be.null
})
})
})

Expand Down

0 comments on commit f47f4c1

Please sign in to comment.