Skip to content

Commit fd704ae

Browse files
chore: Update tests to patcher 1.3.0
1 parent 41842d8 commit fd704ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/kotlin/app/morphe/cli/command/PatchOptionsFileTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class PatchOptionsFileTest {
9696
@Test
9797
fun `mergeWithBundle preserves existing settings`(){
9898
// New patch from .mpp files comes with this default (enabled + light)
99-
val patch = rawResourcePatch(name = "Theme", description = "Change Theme", use = true){
99+
val patch = rawResourcePatch(name = "Theme", description = "Change Theme", default = true){
100100
option<String>(key = "colorScheme", default = "light")
101101
}
102102

@@ -120,9 +120,9 @@ class PatchOptionsFileTest {
120120
@Test
121121
fun `mergeWithBundle adds new Patch that didn't exist with default settings`(){
122122
// We add new Patch that didn't exist with default values
123-
val themePatch = rawResourcePatch(name = "Theme", description = "Change Theme", use = true) {}
123+
val themePatch = rawResourcePatch(name = "Theme", description = "Change Theme", default = true) {}
124124

125-
val adBlockPatch = rawResourcePatch(name = "AdBlocker", description = "Block Ads", use = true) {}
125+
val adBlockPatch = rawResourcePatch(name = "AdBlocker", description = "Block Ads", default = true) {}
126126

127127
val userBundle = PatchBundle(
128128
meta = PatchBundleMeta(),
@@ -137,7 +137,7 @@ class PatchOptionsFileTest {
137137
@Test
138138
fun `mergeWithBundle removes an old patch that no longer exists`(){
139139
// We remove an old patch that no longer exists
140-
val themePatch = rawResourcePatch(name = "Theme", description = "Change Theme", use = true) {}
140+
val themePatch = rawResourcePatch(name = "Theme", description = "Change Theme", default = true) {}
141141

142142
val userBundle = PatchBundle(
143143
meta = PatchBundleMeta(),

0 commit comments

Comments
 (0)