This commit is contained in:
Jonathan Jogenfors 2023-11-20 23:50:51 +01:00
parent f6889c4d45
commit 8d4bc7f6a8
2 changed files with 3 additions and 22 deletions

View file

@ -1,23 +1,14 @@
import { api } from '@test/api';
import * as fs from 'fs';
import {
IMMICH_TEST_ASSET_PATH,
IMMICH_TEST_ASSET_TEMP_PATH,
restoreTempFolder,
testApp,
} from 'immich/test/test-utils';
import { restoreTempFolder, testApp } from 'immich/test/test-utils';
import { LoginResponseDto } from 'src/api/open-api';
import ServerInfo from 'src/commands/server-info';
import Upload from 'src/commands/upload';
import { INestApplication } from '@nestjs/common';
import { Http2SecureServer } from 'http2';
import { APIKeyCreateResponseDto } from '@app/domain';
describe(`server-info (e2e)`, () => {
let server: any;
let admin: LoginResponseDto;
let apiKey: APIKeyCreateResponseDto;
const consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {});
const consoleSpy = jest.spyOn(console, 'log').mockImplementation();
beforeAll(async () => {
server = (await testApp.create({ jobs: true })).getHttpServer();

View file

@ -1,23 +1,13 @@
import { api } from '@test/api';
import * as fs from 'fs';
import {
IMMICH_TEST_ASSET_PATH,
IMMICH_TEST_ASSET_TEMP_PATH,
restoreTempFolder,
testApp,
} from 'immich/test/test-utils';
import { IMMICH_TEST_ASSET_PATH, restoreTempFolder, testApp } from 'immich/test/test-utils';
import { LoginResponseDto } from 'src/api/open-api';
import ServerInfo from 'src/commands/server-info';
import Upload from 'src/commands/upload';
import { INestApplication } from '@nestjs/common';
import { Http2SecureServer } from 'http2';
import { APIKeyCreateResponseDto } from '@app/domain';
describe(`upload (e2e)`, () => {
let server: any;
let admin: LoginResponseDto;
let apiKey: APIKeyCreateResponseDto;
const consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {});
beforeAll(async () => {
server = (await testApp.create({ jobs: true })).getHttpServer();