Skip to content

Commit

Permalink
test a scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Apr 19, 2024
1 parent de91c2d commit 522e797
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/karfia-docker-compose/synthesizer.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

0 comments on commit 522e797

Please sign in to comment.