Skip to content

Commit

Permalink
test: profile containing CONFIG_PREFIX_SEPARATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Dec 6, 2023
1 parent 032ec02 commit a7258d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/shared-ini-file-loader/src/getConfigData.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ describe(getConfigData.name, () => {
{}
);

it("profile containing CONFIG_PREFIX_SEPARATOR", () => {
const profileName = ["foo", "bar"].join(CONFIG_PREFIX_SEPARATOR);
const mockOutput = getMockOutput([profileName]);
const mockInput = getMockInput(mockOutput);
expect(getConfigData(mockInput)).toStrictEqual(mockOutput);
});

it("single profile", () => {
const mockOutput = getMockOutput(["one"]);
const mockInput = getMockInput(mockOutput);
Expand Down

0 comments on commit a7258d7

Please sign in to comment.