aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-22 18:01:59 +0200
committerHampusM <hampus@hampusmat.com>2021-07-22 18:01:59 +0200
commitb9df90173060dd8fb24251da0df4efc034a0d808 (patch)
tree42fd1e529e32b39f4ac23fd422326270461b9fdd
parentdf7f89172f932ea918405ebafd11133f1aeeef05 (diff)
Unexported PatchHeaderData & cleaned up imports in the diff unit test
-rw-r--r--packages/server/src/git/diff.ts2
-rw-r--r--test/unit/diff.unit.test.ts4
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;