Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
dalejo96 committed Dec 12, 2023
1 parent 682b7a7 commit 0503e05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions test/fixtures/test-1-package.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: test-1-package
version: 0.0.1
6 changes: 3 additions & 3 deletions test/unit/readAndWriteNewCabal.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { expect } from "@stackbuilders/assertive-ts";

import { readAndWriteNewCabal, versionPattern } from "../../src/prepare";
import { runExecCommand } from "../../src/utils/exec";

import { readFile, writeFile } from "fs/promises";

Expand All @@ -10,12 +9,13 @@ describe("readAndWriteNewCabal", () => {
const fakeNewVersion = "0.0.7";

beforeEach(async () => {
const cabalContent = "name: test-1-package\nversion: 0.1.0";
const cabalContent = "name: test-1-package\nversion: 0.0.1";
await writeFile(fakeCabalPath, cabalContent, "utf8");
});

afterEach(async () => {
await runExecCommand(`rm -f ${fakeCabalPath}`);
const cabalContent = "name: test-1-package\nversion: 0.0.1";
await writeFile(fakeCabalPath, cabalContent, "utf8");
});

it("updates the version in the cabal file fixture", async () => {
Expand Down

0 comments on commit 0503e05

Please sign in to comment.