Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
siiptuo committed Nov 26, 2024
1 parent 51eb14d commit 14b07d7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion backend/src/lib/auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DataSource, Repository } from "typeorm";
import { RequestHandler, Response } from "express";
import { UserAccount } from "../entity/UserAccount";
import { InstrumentUpload, ModelUpload } from "../entity/Upload";
import { PermissionType } from "../entity/Permission";
import { Site } from "../entity/Site";
import basicAuth = require("basic-auth");
Expand Down
4 changes: 2 additions & 2 deletions backend/src/routes/upload.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Site } from "../entity/Site";
import { InstrumentUpload, ModelUpload, Status, Upload } from "../entity/Upload";
import { DataSource, EntityTarget, FindOptionsWhere, Repository, Brackets, SelectQueryBuilder } from "typeorm";
import { NextFunction, RequestHandler } from "express";
import { RequestHandler } from "express";
import {
ArrayEqual,
dateforsize,
Expand All @@ -19,7 +19,7 @@ import {
} from "../lib";
import { basename } from "path";
import { ReducedMetadataResponse } from "../entity/ReducedMetadataResponse";
import validator, { isIn } from "validator";
import validator from "validator";
import { Instrument, InstrumentInfo } from "../entity/Instrument";
import { Model } from "../entity/Model";
import { ModelFile, RegularFile } from "../entity/File";
Expand Down
6 changes: 3 additions & 3 deletions backend/tests/integration/sequential/file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import { DataSource, Repository } from "typeorm";
import { ModelFile, RegularFile } from "../../../src/entity/File";
import { readFileSync } from "fs";
import { backendPrivateUrl, storageServiceUrl, str2base64 } from "../../lib";
import axios from "axios";
import { Visualization } from "../../../src/entity/Visualization";
import { SearchFile } from "../../../src/entity/SearchFile";
import { ModelVisualization } from "../../../src/entity/ModelVisualization";
import { FileQuality } from "../../../src/entity/FileQuality";
import { QualityReport } from "../../../src/entity/QualityReport";
import { initUsersAndPermissions } from "../../lib/userAccountAndPermissions";
const uuidGen = require("uuid");
const crypto = require("crypto");
import { readResources } from "../../../../shared/lib";
import { AppDataSource } from "../../../src/data-source";
import { describe, expect, it, beforeAll, afterAll, beforeEach } from "@jest/globals";
import axios from "axios";
const uuidGen = require("uuid");
const crypto = require("node:crypto");

let dataSource: DataSource;
let fileRepo: Repository<RegularFile>;
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/integration/sequential/sites.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Visualization } from "../../../src/entity/Visualization";
import { SearchFile } from "../../../src/entity/SearchFile";
import { AppDataSource } from "../../../src/data-source";
import { beforeAll, beforeEach, afterAll, describe, it, expect } from "@jest/globals";
const crypto = require("crypto");
const crypto = require("node:crypto");

const url = `${backendPublicUrl}sites/`;
let resources: any;
Expand Down
3 changes: 1 addition & 2 deletions backend/tests/integration/sequential/upload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import { AppDataSource } from "../../../src/data-source";
import { ModelFile, RegularFile } from "../../../src/entity/File";
import { ArrayEqual } from "../../../src/lib";
import { beforeAll, beforeEach, afterAll, describe, it, expect, jest } from "@jest/globals";
import { response } from "express";

const crypto = require("crypto");
const crypto = require("node:crypto");

jest.setTimeout(20000);

Expand Down

0 comments on commit 14b07d7

Please sign in to comment.