Skip to content

Commit c115b90

Browse files
Fixing tests
1 parent 942aa57 commit c115b90

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

writeopia/src/commonTest/kotlin/io/writeopia/manager/ContentHandlerTest.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ContentHandlerTest {
4444
}
4545

4646
@Test
47-
fun `when a line break happens, the text should be divided correctly`() {
47+
fun `when a line break happens the text should be divided correctly`() {
4848
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
4949
val storyStep = StoryStep(
5050
type = StoryTypes.TEXT.type,
@@ -61,7 +61,7 @@ class ContentHandlerTest {
6161
}
6262

6363
@Test
64-
fun `when a line break happens, the text should be divided correctly for multiple line`() {
64+
fun `when a line break happens the text should be divided correctly for multiple lines`() {
6565
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
6666
val storyStep = StoryStep(
6767
type = StoryTypes.TEXT.type,
@@ -80,7 +80,7 @@ class ContentHandlerTest {
8080
}
8181

8282
@Test
83-
fun `when check item command is WRITTEN, the command should be removed for the story text`() {
83+
fun `when check item command is WRITTEN the command should be removed from the story text`() {
8484
val input = MapStoryData.messagesInLine()
8585
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
8686
val text = "Lalala"
@@ -108,7 +108,7 @@ class ContentHandlerTest {
108108
}
109109

110110
@Test
111-
fun `when deleting stories, the focus should move correctly`() {
111+
fun `when deleting stories the focus should move correctly`() {
112112
val input = MapStoryData.messagesInLine()
113113
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
114114
val text = "Lalala"
@@ -145,7 +145,7 @@ class ContentHandlerTest {
145145
}
146146

147147
@Test
148-
fun `when deleting stories, empty spaces should NOT be allowed`() {
148+
fun `when deleting stories empty spaces should NOT be allowed`() {
149149
val input = MapStoryData.simpleMessages()
150150
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
151151

@@ -155,7 +155,7 @@ class ContentHandlerTest {
155155
}
156156

157157
@Test
158-
fun `when erasing stories, is should move text correctly`() {
158+
fun `when erasing stories it should move text correctly`() {
159159
val input = MapStoryData.simpleMessages()
160160
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
161161

@@ -169,7 +169,7 @@ class ContentHandlerTest {
169169
}
170170

171171
@Test
172-
fun `when erasing stories, empty spaces should NOT be allowed`() {
172+
fun `when erasing stories empty spaces should NOT be allowed`() {
173173
val input = MapStoryData.simpleMessages()
174174
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
175175

@@ -179,7 +179,7 @@ class ContentHandlerTest {
179179
}
180180

181181
@Test
182-
fun `when a header is collapsed, all text bellow it should be hidden`() {
182+
fun `when a header is collapsed all text below it should be hidden`() {
183183
val input = MapStoryData.messagesWithHeader()
184184
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
185185

@@ -190,7 +190,7 @@ class ContentHandlerTest {
190190
}
191191

192192
@Test
193-
fun `when changing the type of a story, it should not change the position of the box highlight`() {
193+
fun `when changing the type of a story it should not change the position of the box highlight`() {
194194
val input = MapStoryData.messagesWithHighlight()
195195
val contentHandler = ContentHandler(stepsNormalizer = normalizer())
196196
val position = 1

writeopia_ui/src/commonTest/kotlin/io/writeopia/ui/modifiers/StepsModifierTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class StepsModifierTest {
3434
}
3535

3636
@Test
37-
fun `tags should be merged correctly, with multiple types`() {
37+
fun `tags should be merged correctly with multiple types`() {
3838
val input = listOf(
3939
StoryStep(
4040
text = "Title",
@@ -103,7 +103,7 @@ class StepsModifierTest {
103103
}
104104

105105
@Test
106-
fun `three consecutive code blocks should have positions -1, 0, and 1`() {
106+
fun `three consecutive code blocks should have positions -1 and 0 and 1`() {
107107
val input = listOf(
108108
StoryStep(type = StoryTypes.CODE_BLOCK.type, text = "line 1"),
109109
StoryStep(type = StoryTypes.CODE_BLOCK.type, text = "line 2"),

0 commit comments

Comments
 (0)