Skip to content

Commit

Permalink
chore: reorganize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cherfia committed Jan 30, 2025
1 parent 89a88eb commit bdd0951
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chromium/utils/tests/converter.utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { createReadStream, promises } from 'fs';
import { blob } from 'node:stream/consumers';

import { ConverterUtils } from '../converter.utils';
import { GotenbergUtils, PdfFormat } from '../../../common';
import { blob } from 'node:stream/consumers';

jest.mock('fs', () => ({
...jest.requireActual('fs'),
Expand Down
3 changes: 2 additions & 1 deletion src/common/gotenberg.utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { constants, ReadStream, promises, openAsBlob } from 'fs';
import { PathLikeOrReadStream } from './types';
import { blob } from 'node:stream/consumers';

import { PathLikeOrReadStream } from './types';

/**
* Utility class for common tasks related to the Gotenberg service.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/common/tests/gotenberg.utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createReadStream, promises } from 'fs';
import { blob } from 'node:stream/consumers';

import { GotenbergUtils } from '../gotenberg.utils';
import { blob } from 'node:stream/consumers';

jest.mock('fs', () => ({
...jest.requireActual('fs'),
Expand Down
2 changes: 1 addition & 1 deletion src/pdf-engines/utils/pdf-engines.utils.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { constants, openAsBlob, promises, ReadStream } from 'fs';
import path from 'path';
import { blob } from 'node:stream/consumers';

import { GotenbergUtils, PathLikeOrReadStream } from '../../common';
import {
ConversionOptions,
MergeOptions
} from '../interfaces/pdf-engines.types';
import { blob } from 'node:stream/consumers';

/**
* Utility class for handling common tasks related to PDF engine operations.
Expand Down

0 comments on commit bdd0951

Please sign in to comment.