Skip to content

Commit cf378c4

Browse files
committed
Fix JLUiLayerTest to assert text equality without quotes for accurate validation
Signed-off-by: makbn <[email protected]>
1 parent ca014e0 commit cf378c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jlmap-fx/src/test/java/io/github/makbn/jlmap/fx/test/layer/JLUiLayerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void addPopup_withDefaultOptions_shouldExecuteCorrectScript() {
164164

165165
assertThat(result).isNotNull();
166166
assertThat(result.getId()).startsWith("JLGeoJson");
167-
assertThat(result.getText()).isEqualTo("\"" + text + "\"");
167+
assertThat(result.getText()).isEqualTo(text);
168168
}
169169

170170
@Test
@@ -189,7 +189,7 @@ void addPopup_withCustomOptions_shouldIncludeOptionsInScript() {
189189
assertThat(script).contains("autoClose: false");
190190

191191
assertThat(result).isNotNull();
192-
assertThat(result.getText()).isEqualTo("\"" + text + "\"");
192+
assertThat(result.getText()).isEqualTo(text);
193193
}
194194

195195
@Test

0 commit comments

Comments
 (0)