Skip to content

Commit 69e3907

Browse files
committed
Add missing test following merge with main
1 parent e5b9274 commit 69e3907

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { MAJOR_VERSION, VERSION } from "../version";
2+
3+
describe("version exports", () => {
4+
it("should export MAJOR_VERSION as the first segment of the version", () => {
5+
expect(VERSION.startsWith(`${MAJOR_VERSION}.`)).toBeTruthy();
6+
});
7+
8+
it("should have VERSION in semver format", () => {
9+
expect(VERSION).toMatch(/^\d+\.\d+\.\d+$/);
10+
});
11+
});

internal/events/src/events/__tests__/letter-mapper.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { $LetterEvent } from "@nhsdigital/nhs-notify-event-schemas-supplier-api/src";
22
import { Letter } from "@internal/datastore";
3-
import { mapLetterToCloudEvent } from "../letter-mapper";
3+
import { mapLetterToCloudEvent } from "@nhsdigital/nhs-notify-event-schemas-supplier-api/src/events/letter-mapper";
44

55
describe("letter-mapper", () => {
66
it("maps a letter to a letter event", async () => {

0 commit comments

Comments
 (0)