Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
Add reproducer for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed May 29, 2020
1 parent c108991 commit 0bf5f1f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/integration/history.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
*/

import { expect } from "chai";
import { beforeEach, describe, it, xit } from "mocha";
import { promises as fsPromises } from "fs";
import { beforeEach, describe, it, xit } from "mocha";
import { PackageFile } from "../../src/file";
import {
Commit,
Expand Down Expand Up @@ -653,6 +653,18 @@ describe("Commit", function () {
await drawHistoryToSvg(head!)
);
});

xit("fetches the history of a package that was branched", async function () {
const head = await fetchHistoryAcrossLinks(this.con, {
apiUrl,
name: "rubygem-nokogiri",
projectName: "Virtualization:vagrant"
});
await fsPromises.writeFile(
"./rubygem-nokogiri.svg",
await drawHistoryToSvg(head!)
);
});
});

describe("#fetchFileContentsAtCommit", () => {
Expand Down

0 comments on commit 0bf5f1f

Please sign in to comment.