From b9df90173060dd8fb24251da0df4efc034a0d808 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 22 Jul 2021 18:01:59 +0200 Subject: Unexported PatchHeaderData & cleaned up imports in the diff unit test --- packages/server/src/git/diff.ts | 2 +- test/unit/diff.unit.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/git/diff.ts b/packages/server/src/git/diff.ts index 56bc57b..6cd38a3 100644 --- a/packages/server/src/git/diff.ts +++ b/packages/server/src/git/diff.ts @@ -1,7 +1,7 @@ import { Diff as NodeGitDiff } from "nodegit"; import { Patch } from "./patch"; -export type PatchHeaderData = { +type PatchHeaderData = { indexes: number[], lengths: number[], last: number | null diff --git a/test/unit/diff.unit.test.ts b/test/unit/diff.unit.test.ts index 952abb0..2021987 100644 --- a/test/unit/diff.unit.test.ts +++ b/test/unit/diff.unit.test.ts @@ -1,7 +1,7 @@ import { Repository } from "server/src/git/repository"; -import { Diff, PatchHeaderData } from "server/src/git/diff"; +import { Diff } from "server/src/git/diff"; import { EnvironmentVariables } from "../util"; -import { Patch } from "../../packages/server/src/git/patch"; +import { Patch } from "server/src/git/patch"; const env = process.env as EnvironmentVariables; -- cgit v1.2.3-18-g5258