File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ } ) ;
Original file line number Diff line number Diff line change 11import { $LetterEvent } from "@nhsdigital/nhs-notify-event-schemas-supplier-api/src" ;
22import { 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
55describe ( "letter-mapper" , ( ) => {
66 it ( "maps a letter to a letter event" , async ( ) => {
You can’t perform that action at this time.
0 commit comments