@@ -21,46 +21,34 @@ const bundlePath = resolve(
2121) ;
2222const tableName = "supplier-config-it" ;
2323const expectedRecords = [
24- {
25- pk : "ENTITY#channel" ,
26- sk : "ID#letter" ,
27- entity : "channel" ,
28- id : "letter" ,
29- } ,
3024 {
3125 pk : "ENTITY#volume-group" ,
3226 sk : "ID#vg-1" ,
33- entity : "volume-group" ,
3427 id : "vg-1" ,
3528 } ,
3629 {
3730 pk : "ENTITY#letter-variant" ,
3831 sk : "ID#lv-1" ,
39- entity : "letter-variant" ,
4032 id : "lv-1" ,
4133 } ,
4234 {
4335 pk : "ENTITY#pack-specification" ,
4436 sk : "ID#pack-spec-1" ,
45- entity : "pack-specification" ,
4637 id : "pack-spec-1" ,
4738 } ,
4839 {
4940 pk : "ENTITY#supplier" ,
5041 sk : "ID#sup-1" ,
51- entity : "supplier" ,
5242 id : "sup-1" ,
5343 } ,
5444 {
5545 pk : "ENTITY#supplier-allocation" ,
5646 sk : "ID#alloc-1" ,
57- entity : "supplier-allocation" ,
5847 id : "alloc-1" ,
5948 } ,
6049 {
6150 pk : "ENTITY#supplier-pack" ,
6251 sk : "ID#sp-1" ,
63- entity : "supplier-pack" ,
6452 id : "sp-1" ,
6553 } ,
6654] as const ;
@@ -125,8 +113,6 @@ function expectExpectedRecords(
125113 ) ;
126114
127115 expect ( actual ) . toBeDefined ( ) ;
128- expect ( actual ?. env ?. S ) . toBe ( "draft" ) ;
129- expect ( actual ?. entity ?. S ) . toBe ( expectedRecord . entity ) ;
130116 expect ( actual ?. id ?. S ) . toBe ( expectedRecord . id ) ;
131117 }
132118}
@@ -187,9 +173,7 @@ describe("publish action integration (DynamoDB Local)", () => {
187173 Item : {
188174 pk : { S : "ENTITY#supplier" } ,
189175 sk : { S : "ID#stale-supplier" } ,
190- entity : { S : "supplier" } ,
191176 id : { S : "stale-supplier" } ,
192- env : { S : "draft" } ,
193177 status : { S : "DRAFT" } ,
194178 name : { S : "Stale Supplier" } ,
195179 channelType : { S : "LETTER" } ,
0 commit comments