Skip to content

Commit

Permalink
fix: fix local testing failures by allowing nock to also mock out loc…
Browse files Browse the repository at this point in the history
…alhost
  • Loading branch information
daniel-jones-dev committed Jul 21, 2023
1 parent 293b15f commit 042031f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/general.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import {
} from './core';

const serverUrl = process.env.DEEPL_SERVER_URL;
const urlToMockRegexp = /(https?:\/\/api.*\.deepl\.com)|(deepl-mock:\d+)/;
const urlToMockRegexp =
/(https?:\/\/api.*\.deepl\.com)|(deepl-mock:\d+)|(https?:\/\/localhost:\d+)/;

describe('general', () => {
it('rejects empty authKey', () => {
Expand Down

0 comments on commit 042031f

Please sign in to comment.