Skip to content

Commit

Permalink
fix: Skip /v1/statuses/:id/translate test on PRs from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed May 2, 2023
1 parent 3a32062 commit 67470d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/v1/statuses.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ describe('status', () => {

it('translates a status', () => {
return clients.use(async (client) => {
const instance = await client.v2.instance.fetch();
if (!instance.configuration.translation.enabled) {
return;
}

const { id } = await client.v1.statuses.create({
status: 'Hello',
});
Expand Down

0 comments on commit 67470d1

Please sign in to comment.