Skip to content

Commit 3061744

Browse files
committed
Should use public api to build global parameters
1 parent 93281a9 commit 3061744

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { describe, it } from "node:test";
2+
import assert from "node:assert/strict";
3+
4+
import { ParameterType } from "../../src/config.js";
5+
import { buildGlobalParameterDefinition } from "../../src/internal/global-parameters.js";
6+
7+
describe("Global Parameters", () => {
8+
describe("buildGlobalParameterDefinition", () => {
9+
it("should build a global parameter definition", () => {
10+
const options = {
11+
name: "foo",
12+
description: "Foo description",
13+
parameterType: ParameterType.STRING,
14+
defaultValue: "bar",
15+
};
16+
const globalParameter = buildGlobalParameterDefinition(options);
17+
18+
assert.deepEqual(globalParameter, options);
19+
});
20+
});
21+
});

0 commit comments

Comments
 (0)