@@ -22,10 +22,10 @@ import { CreateQueueCommand, ListQueuesCommand, ReceiveMessageCommand, SQSClient
2222import { GenericContainer , Network , Wait } from "testcontainers" ;
2323import { LocalstackContainer } from "@testcontainers/localstack" ;
2424import { RabbitMQContainer } from "@testcontainers/rabbitmq" ;
25- import { MicrocksContainersEnsemble } from "./microcks-containers-ensemble" ;
26- import { TestRequest , TestResult , TestRunnerType } from "./microcks-container" ;
25+ import { MicrocksContainersEnsemble } from "./microcks-containers-ensemble.js " ;
26+ import { TestRequest , TestResult , TestRunnerType } from "./microcks-container.js " ;
2727import { WebSocket } from "ws" ;
28- import mqtt from "mqtt" ;
28+ import mqtt from "mqtt" ;
2929import amqp from "amqplib" ;
3030
3131describe ( "MicrocksContainersEnsemble" , ( ) => {
@@ -143,7 +143,7 @@ describe("MicrocksContainersEnsemble", () => {
143143 let wsEndpoint = ensemble . getAsyncMinionContainer ( ) ?. getWSMockEndpoint ( "Pastry orders API" , "0.1.0" , "SUBSCRIBE pastry/orders" ) ;
144144 let expectedMessage = "{\"id\":\"4dab240d-7847-4e25-8ef3-1530687650c8\",\"customerId\":\"fe1088b3-9f30-4dc1-a93d-7b74f0a072b9\",\"status\":\"VALIDATED\",\"productQuantities\":[{\"quantity\":2,\"pastryName\":\"Croissant\"},{\"quantity\":1,\"pastryName\":\"Millefeuille\"}]}" ;
145145
146- const ws = new WebSocket ( wsEndpoint as string ) ;
146+ const ws = new WebSocket ( wsEndpoint as string ) ;
147147 ws . on ( 'error' , console . error ) ;
148148 ws . on ( 'message' , function message ( data ) {
149149 messages . push ( data . toString ( ) ) ;
@@ -199,7 +199,7 @@ describe("MicrocksContainersEnsemble", () => {
199199 expect ( testResult . testCaseResults [ 0 ] . testStepResults [ 0 ] . message ) . toContain ( "object has missing required properties" ) ;
200200
201201 // Retrieve event messages for the failing test case.
202- const events = await ensemble . getMicrocksContainer ( ) . getEventMessagesForTestCase ( testResult ,
202+ const events = await ensemble . getMicrocksContainer ( ) . getEventMessagesForTestCase ( testResult ,
203203 "SUBSCRIBE pastry/orders" ) ;
204204
205205 // We should have at least 1 event.
@@ -326,7 +326,7 @@ describe("MicrocksContainersEnsemble", () => {
326326 //await channel.checkExchange(amqpDestination as string);
327327 await channel . assertQueue ( 'microcks-test' , { durable : false } ) ;
328328 await channel . bindQueue ( 'microcks-test' , amqpDestination as string , '' ) ;
329-
329+
330330 channel . consume ( 'microcks-test' , ( msg : any ) => {
331331 if ( msg !== null ) {
332332 messages . push ( msg . content . toString ( ) ) ;
@@ -391,7 +391,7 @@ describe("MicrocksContainersEnsemble", () => {
391391 endpointOverride : 'http://localstack:4566'
392392 } )
393393 . start ( ) ;
394-
394+
395395 // Initialize messages list and connect to mock endpoint.
396396 let messages : string [ ] = [ ] ;
397397 let sqsEndpoint = ensemble . getAsyncMinionContainer ( ) ?. getAmazonSQSMockQueue ( "Pastry orders API" , "0.1.0" , "SUBSCRIBE pastry/orders" ) ;
0 commit comments