Skip to content

Commit

Permalink
Capturing only the latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioszabo committed Aug 10, 2024
1 parent 44efbcc commit 0e13bbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/full/publish.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ describe("publish packages", () => {
const pack = res.body;

expect(pack.name).toBe("b-pulsar-package");
expect(pack).toMatchObject(require("./fixtures/b-pulsar-package/match.js"));
let fixture = require("./fixtures/b-pulsar-package/match.js")
fixture.versions = { "2.0.0": fixture.versions["2.0.0"] }
expect(pack).toMatchObject(fixture);

await database.removePackageByName("b-pulsar-package", true);
});
Expand Down

0 comments on commit 0e13bbf

Please sign in to comment.