Skip to content

Commit

Permalink
fix(test): Add last value on templateData
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrault committed Dec 14, 2023
1 parent 7b0a047 commit 80c93e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/translation/generate-template-data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("generateType", () => {

expect(result[0]).toEqual({
key: "day",
interpolations: [{ name: "count", type: "number" }],
interpolations: [{ name: "count", type: "number", last: true }],
});
});

Expand All @@ -35,7 +35,7 @@ describe("generateType", () => {
});
expect(result[1]).toEqual({
key: "day.other",
interpolations: [{ name: "count", type: "string" }],
interpolations: [{ name: "count", type: "string", last: true }],
});
});

Expand All @@ -52,7 +52,7 @@ describe("generateType", () => {
key: "greeting",
interpolations: [
{ name: "firstName", type: "string" },
{ name: "familyName", type: "string" },
{ name: "familyName", type: "string", last: true },
],
});
});
Expand All @@ -73,7 +73,7 @@ describe("generateType", () => {
interpolations: [
{ name: "mood", type: "string" },
{ name: "count", type: "number" },
{ name: "moods", type: "string" },
{ name: "moods", type: "string", last: true },
],
});
});
Expand Down

0 comments on commit 80c93e9

Please sign in to comment.