diff --git a/packages/karfia-docker-compose/synthesizer.unit.ts b/packages/karfia-docker-compose/synthesizer.unit.ts index 3eb310b..51f45e1 100644 --- a/packages/karfia-docker-compose/synthesizer.unit.ts +++ b/packages/karfia-docker-compose/synthesizer.unit.ts @@ -99,3 +99,26 @@ it('should synthesize with valid definition', async () => { expect.stringMatching(/^URL=http:\/\/[0-9a-f]{32}:[0-9a-f]{32}@ganache:8554$/), ]); }); + +it('should have different deploymentId when using different Synthesizer', async () => { + const definition: KarfiaDefinition = { + id: 'eip155:1337/ganache:7.9.1', + caip2: 'eip155:1337', + name: 'Ganache', + containers: { + ganache: { + image: 'docker.io/trufflesuite/ganache@sha256:c62c58290c28e24b427f74c6f597ff696257bd2d8e8d517ce4cf46b29b304a3f', + source: 'https://github.com/trufflesuite/ganache', + resources: { + cpu: 0.25, + memory: 256, + }, + endpoints: {}, + }, + }, + }; + + const synthesizer1 = new Synthesizer(definition); + const synthesizer2 = new Synthesizer(definition); + expect(synthesizer1.deploymentId).not.toEqual(synthesizer2.deploymentId); +});