Skip to content

Commit 34b46fd

Browse files
committed
Update test names
1 parent 29ae700 commit 34b46fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/test/java/com/duckduckgo/app/browser/omnibar/OmnibarFeatureRepositoryTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class OmnibarFeatureRepositoryTest {
6565
}
6666

6767
@Test
68-
fun givenSplitOmnibarEnabledWhenSplitOmnibarIsDisabledThenOmnibarTypeIsReset() = runTest {
68+
fun `given split omnibar enabled when split omnibar is disabled then omnibar type is reset`() = runTest {
6969
fakeSettingsDataStore.omnibarType = OmnibarType.SPLIT
7070
browserFeatures.useUnifiedOmnibarLayout().setRawStoredState(Toggle.State(enable = true))
7171
browserFeatures.splitOmnibar().setRawStoredState(Toggle.State(enable = false))
@@ -78,7 +78,7 @@ class OmnibarFeatureRepositoryTest {
7878
}
7979

8080
@Test
81-
fun givenSplitOmnibarWasPreviouslySelectedWhenSplitOmnibarIsEnabledThenOmnibarTypeIsRestored() = runTest {
81+
fun `given split omnibar was previously selected when split omnibar is enabled then omnibar type is restored`() = runTest {
8282
fakeSettingsDataStore.omnibarType = OmnibarType.SINGLE_TOP
8383
fakeSettingsDataStore.isSplitOmnibarSelected = true
8484
browserFeatures.useUnifiedOmnibarLayout().setRawStoredState(Toggle.State(enable = true))
@@ -92,7 +92,7 @@ class OmnibarFeatureRepositoryTest {
9292
}
9393

9494
@Test
95-
fun whenIsSplitOmnibarAvailableAndOmnibarTypeIsSplitThenIsSplitOmnibarEnabledIsTrue() = runTest {
95+
fun `when split omnibar available and omnibar type is split then split omnibar enabled is true`() = runTest {
9696
browserFeatures.useUnifiedOmnibarLayout().setRawStoredState(Toggle.State(enable = true))
9797
browserFeatures.splitOmnibar().setRawStoredState(Toggle.State(enable = true))
9898
fakeSettingsDataStore.omnibarType = OmnibarType.SPLIT
@@ -103,7 +103,7 @@ class OmnibarFeatureRepositoryTest {
103103
}
104104

105105
@Test
106-
fun whenIsSplitOmnibarNotAvailableThenIsSplitOmnibarEnabledIsFalse() = runTest {
106+
fun `when split omnibar not available then split omnibar enabled is false`() = runTest {
107107
browserFeatures.useUnifiedOmnibarLayout().setRawStoredState(Toggle.State(enable = false))
108108
browserFeatures.splitOmnibar().setRawStoredState(Toggle.State(enable = true))
109109
fakeSettingsDataStore.omnibarType = OmnibarType.SPLIT
@@ -114,7 +114,7 @@ class OmnibarFeatureRepositoryTest {
114114
}
115115

116116
@Test
117-
fun whenOmnibarTypeIsNotSplitThenIsSplitOmnibarEnabledIsFalse() = runTest {
117+
fun `when omnibar type is not split then split omnibar enabled is false`() = runTest {
118118
browserFeatures.useUnifiedOmnibarLayout().setRawStoredState(Toggle.State(enable = true))
119119
browserFeatures.splitOmnibar().setRawStoredState(Toggle.State(enable = true))
120120
fakeSettingsDataStore.omnibarType = OmnibarType.SINGLE_TOP

0 commit comments

Comments
 (0)