Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ParvinEyvazov committed Jul 15, 2024
1 parent f492f2d commit 13b3dc7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/core.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'openai/shims/node'

Check failure on line 1 in src/test/core.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and ubuntu-latest

Insert `;`

Check failure on line 1 in src/test/core.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and macOS-latest

Insert `;`
import { getFile, getRootFolder, saveFilePublic } from '../core/core';
import * as fs from 'fs/promises';
import * as appConsole from '../utils/console';
Expand Down
1 change: 1 addition & 0 deletions src/test/json-file.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'openai/shims/node'

Check failure on line 1 in src/test/json-file.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and ubuntu-latest

Insert `;`

Check failure on line 1 in src/test/json-file.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and macOS-latest

Insert `;`
import { fileTranslator } from '../core/json_file';
import * as appConsole from '../utils/console';
import * as jsonObject from '../core/json_object';
Expand Down
1 change: 1 addition & 0 deletions src/test/json-object.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'openai/shims/node'

Check failure on line 1 in src/test/json-object.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and ubuntu-latest

Insert `;`

Check failure on line 1 in src/test/json-object.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and macOS-latest

Insert `;`
import * as translator from '../core/translator';
import { deepDiver, objectTranslator } from '../core/json_object';
import { GoogleTranslateLanguages } from '../modules/languages';
Expand Down
1 change: 1 addition & 0 deletions src/test/translator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="../global" />
import 'openai/shims/node'

Check failure on line 2 in src/test/translator.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and ubuntu-latest

Insert `;`

Check failure on line 2 in src/test/translator.spec.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and macOS-latest

Insert `;`
import nock from 'nock';
import { plaintranslate } from '../core/translator';
import { DeepLTranslateLanguages } from '../modules/languages';
Expand Down
1 change: 1 addition & 0 deletions src/test/util.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'openai/shims/node'

Check failure on line 1 in src/test/util.test.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and ubuntu-latest

Insert `;`

Check failure on line 1 in src/test/util.test.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and macOS-latest

Insert `;`
import { error, info, success, warn } from '../utils/console';

declare global {
Expand Down
1 change: 1 addition & 0 deletions test/util.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'openai/shims/node'

Check failure on line 1 in test/util.test.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and ubuntu-latest

Insert `;`

Check failure on line 1 in test/util.test.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 16.x and macOS-latest

Insert `;`
import { error, info, success, warn } from '../src/utils/console';

declare global {
Expand Down

0 comments on commit 13b3dc7

Please sign in to comment.