Skip to content

Commit

Permalink
Fix deepl integtation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrztoph committed Dec 8, 2024
1 parent 058e126 commit 0d9d813
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions spec/requests/api/v1/machine_translations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@
expect(body['character_count']).to be_a_kind_of(Integer)
expect(body['character_limit']).to be_a_kind_of(Integer)
end

it 'returns an error for invalid token' do
ENV['DEEPL_API_TOKEN'] = 'invalid token'

get '/api/v1/machine_translations_usage', headers: @auth_params_superadmin
expect(response).to have_http_status(:bad_request)
body = JSON.parse(response.body)
expect(body['error']).to be(true)
expect(body['message']).to eq('MACHINE_TRANSLATION_INVALID_TOKEN')
end
end

describe 'GET target_languages' do
Expand Down

0 comments on commit 0d9d813

Please sign in to comment.