Skip to content

Commit

Permalink
Remove redundant const declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
ttsukagoshi committed Feb 7, 2024
1 parent 1389241 commit 920eac2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/getDeepLApiBaseUrl.test.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import { getDeepLApiBaseUrl } from '../src/sheetsl';

const DEEPL_API_VERSION = 'v2';
const DEEPL_API_BASE_URL_FREE = `https://api-free.deepl.com/${DEEPL_API_VERSION}/`;
const DEEPL_API_BASE_URL_PRO = `https://api.deepl.com/${DEEPL_API_VERSION}/`;

const patterns = [
{
title: 'DeepL API Free account',
input: 'xxxxxxxxxxx:fx',
expectedOutput: DEEPL_API_BASE_URL_FREE,
expectedOutput: 'https://api-free.deepl.com/v2/',
},
{
title: 'DeepL API Pro account',
input: 'xxxxxxxxxxx',
expectedOutput: DEEPL_API_BASE_URL_PRO,
expectedOutput: 'https://api.deepl.com/v2/',
},
];

Expand Down

0 comments on commit 920eac2

Please sign in to comment.