Extended existing tests to include semver property (#5)
This commit is contained in:
parent
5043868fc7
commit
da087f19db
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,7 @@ object SemverConfigSpec : Spek({
|
||||||
Scenario("Testing configs") {
|
Scenario("Testing configs") {
|
||||||
val config by memoized { SemverConfig() }
|
val config by memoized { SemverConfig() }
|
||||||
val vars = listOf(
|
val vars = listOf(
|
||||||
|
config.semverKey,
|
||||||
config.majorKey,
|
config.majorKey,
|
||||||
config.minorKey,
|
config.minorKey,
|
||||||
config.patchKey,
|
config.patchKey,
|
||||||
|
@ -52,6 +53,7 @@ object SemverConfigSpec : Spek({
|
||||||
config.separatorKey
|
config.separatorKey
|
||||||
)
|
)
|
||||||
val defaults = listOf(
|
val defaults = listOf(
|
||||||
|
SemverConfig.DEFAULT_SEMVER_KEY,
|
||||||
SemverConfig.DEFAULT_MAJOR_KEY,
|
SemverConfig.DEFAULT_MAJOR_KEY,
|
||||||
SemverConfig.DEFAULT_MINOR_KEY,
|
SemverConfig.DEFAULT_MINOR_KEY,
|
||||||
SemverConfig.DEFAULT_PATCH_KEY,
|
SemverConfig.DEFAULT_PATCH_KEY,
|
||||||
|
@ -79,6 +81,7 @@ object SemverConfigSpec : Spek({
|
||||||
When("setting keyPrefix to test.") {
|
When("setting keyPrefix to test.") {
|
||||||
config.keysPrefix = "test."
|
config.keysPrefix = "test."
|
||||||
newKeys = listOf(
|
newKeys = listOf(
|
||||||
|
config.semverKey,
|
||||||
config.majorKey,
|
config.majorKey,
|
||||||
config.minorKey,
|
config.minorKey,
|
||||||
config.patchKey,
|
config.patchKey,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue