-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add extendedVarType management for ScenarioParameters
- Loading branch information
1 parent
50cbc1d
commit 2b2b8bb
Showing
4 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Cosmo Tech. | ||
// Licensed under the MIT license. | ||
|
||
import { ConfigUtils } from '../ConfigUtils'; | ||
|
||
describe('buildExtendedVarType with possible values', () => { | ||
test.each` | ||
varType | extension | expectedRes | ||
${null} | ${null} | ${undefined} | ||
${null} | ${undefined} | ${undefined} | ||
${null} | ${''} | ${undefined} | ||
${null} | ${'extension'} | ${undefined} | ||
${''} | ${null} | ${undefined} | ||
${''} | ${undefined} | ${undefined} | ||
${''} | ${''} | ${undefined} | ||
${''} | ${'extension'} | ${undefined} | ||
${'varType'} | ${null} | ${'varType'} | ||
${'varType'} | ${undefined} | ${'varType'} | ||
${'varType'} | ${''} | ${'varType'} | ||
${'varType'} | ${'extension'} | ${'varType-extension'} | ||
`('if "$varType" and "$extension" then "$expectedRes"', ({ varType, extension, expectedRes }) => { | ||
const res = ConfigUtils.buildExtendedVarType(varType, extension); | ||
expect(res).toStrictEqual(expectedRes); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters