Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamlangford committed Jul 8, 2024
1 parent d452a0b commit 3aeb5ff
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/bricks/transformers/RunMetadataTransformer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const brick = new RunMetadataTransformer();

describe("RunMetadataTransformer", () => {
it("returns standalone mod metadata", async () => {
const extensionId = autoUUIDSequence();
const modComponentId = autoUUIDSequence();
const logger = new ConsoleLogger({
modComponentId: extensionId,
modComponentId,
});

const result = await brick.run(
Expand All @@ -42,19 +42,19 @@ describe("RunMetadataTransformer", () => {
);

expect(result).toEqual({
modComponentId: extensionId,
modComponentId,
deploymentId: null,
mod: null,
runId: null,
});
});

it("returns packaged mod metadata", async () => {
const extensionId = autoUUIDSequence();
const registryId = registryIdFactory();
const modComponentId = autoUUIDSequence();
const modId = registryIdFactory();
const logger = new ConsoleLogger({
modComponentId: extensionId,
modId: registryId,
modComponentId,
modId,
modVersion: "1.0.0" as SemVerString,
});

Expand All @@ -66,25 +66,25 @@ describe("RunMetadataTransformer", () => {
);

expect(result).toEqual({
modComponentId: extensionId,
modComponentId,
deploymentId: null,
mod: {
id: registryId,
id: modId,
version: "1.0.0",
},
runId: null,
});
});

it("returns deployed mod metadata", async () => {
const extensionId = autoUUIDSequence();
const modComponentId = autoUUIDSequence();
const deploymentId = autoUUIDSequence();
const registryId = registryIdFactory();
const modId = registryIdFactory();
const runId = autoUUIDSequence();

const logger = new ConsoleLogger({
modComponentId: extensionId,
modId: registryId,
modComponentId,
modId,
modVersion: "1.0.0" as SemVerString,
deploymentId,
});
Expand All @@ -95,17 +95,17 @@ describe("RunMetadataTransformer", () => {
logger,
meta: {
runId,
extensionId,
extensionId: modComponentId,
branches: [],
},
}),
);

expect(result).toEqual({
modComponentId: extensionId,
modComponentId,
deploymentId,
mod: {
id: registryId,
id: modId,
version: "1.0.0",
},
runId,
Expand Down

0 comments on commit 3aeb5ff

Please sign in to comment.