Reformat.
This commit is contained in:
parent
72eeb3a099
commit
691580baec
1 changed files with 24 additions and 24 deletions
|
@ -44,24 +44,24 @@ object SemverConfigSpec : Spek({
|
||||||
given("a config") {
|
given("a config") {
|
||||||
val config = SemverConfig()
|
val config = SemverConfig()
|
||||||
val vars = listOf(
|
val vars = listOf(
|
||||||
config.majorKey,
|
config.majorKey,
|
||||||
config.minorKey,
|
config.minorKey,
|
||||||
config.patchKey,
|
config.patchKey,
|
||||||
config.preReleaseKey,
|
config.preReleaseKey,
|
||||||
config.preReleasePrefixKey,
|
config.preReleasePrefixKey,
|
||||||
config.buildMetaKey,
|
config.buildMetaKey,
|
||||||
config.buildMetaPrefixKey,
|
config.buildMetaPrefixKey,
|
||||||
config.separatorKey
|
config.separatorKey
|
||||||
)
|
)
|
||||||
val defaults = listOf(
|
val defaults = listOf(
|
||||||
SemverConfig.DEFAULT_MAJOR_KEY,
|
SemverConfig.DEFAULT_MAJOR_KEY,
|
||||||
SemverConfig.DEFAULT_MINOR_KEY,
|
SemverConfig.DEFAULT_MINOR_KEY,
|
||||||
SemverConfig.DEFAULT_PATCH_KEY,
|
SemverConfig.DEFAULT_PATCH_KEY,
|
||||||
SemverConfig.DEFAULT_PRERELEASE_KEY,
|
SemverConfig.DEFAULT_PRERELEASE_KEY,
|
||||||
SemverConfig.DEFAULT_PRERELEASE_PREFIX_KEY,
|
SemverConfig.DEFAULT_PRERELEASE_PREFIX_KEY,
|
||||||
SemverConfig.DEFAULT_BUILDMETA_KEY,
|
SemverConfig.DEFAULT_BUILDMETA_KEY,
|
||||||
SemverConfig.DEFAULT_BUILDMETA_PREFIX_KEY,
|
SemverConfig.DEFAULT_BUILDMETA_PREFIX_KEY,
|
||||||
SemverConfig.DEFAULT_SEPARATOR
|
SemverConfig.DEFAULT_SEPARATOR
|
||||||
)
|
)
|
||||||
on("defaults") {
|
on("defaults") {
|
||||||
defaults.forEachIndexed { i, d ->
|
defaults.forEachIndexed { i, d ->
|
||||||
|
@ -73,14 +73,14 @@ object SemverConfigSpec : Spek({
|
||||||
on("set keys to test.xxx") {
|
on("set keys to test.xxx") {
|
||||||
config.keysPrefix = "test."
|
config.keysPrefix = "test."
|
||||||
val keys = listOf(
|
val keys = listOf(
|
||||||
config.majorKey,
|
config.majorKey,
|
||||||
config.minorKey,
|
config.minorKey,
|
||||||
config.patchKey,
|
config.patchKey,
|
||||||
config.preReleaseKey,
|
config.preReleaseKey,
|
||||||
config.preReleasePrefixKey,
|
config.preReleasePrefixKey,
|
||||||
config.buildMetaKey,
|
config.buildMetaKey,
|
||||||
config.buildMetaPrefixKey,
|
config.buildMetaPrefixKey,
|
||||||
config.separatorKey)
|
config.separatorKey)
|
||||||
|
|
||||||
keys.forEach { k ->
|
keys.forEach { k ->
|
||||||
it("should all start with test.xxx: $k") {
|
it("should all start with test.xxx: $k") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue