UNPKG

humpty

Version:

Makes sure your changelogs mention your breaking changes

21 lines (19 loc) 536 B
import findApiChanges from "../src/findApiChanges"; import { oldExport as oldExportExportRemoved } from "./inputs/findApiChanges/exportRemoved"; import { EXPORT_REMOVED } from "../src/changeTypes"; describe("findApiChanges()", () => { test("export removed", () => { expect( findApiChanges({ oldExports: [oldExportExportRemoved], newExports: [] }) ).toEqual([ { isDefaultExport: true, apiChanges: [ { changeType: EXPORT_REMOVED } ] } ]); }); });