@@ -4,7 +4,7 @@ import dev.sargunv.pokekotlin.model.ChainLink
44import dev.sargunv.pokekotlin.model.EvolutionDetail
55import dev.sargunv.pokekotlin.model.Name
66import dev.sargunv.pokekotlin.model.NamedApiResource
7- import dev.sargunv.pokekotlin.test.StaticPokeApi
7+ import dev.sargunv.pokekotlin.test.LocalPokeApi
88import kotlin.test.Test
99import kotlin.test.assertContains
1010import kotlin.test.assertEquals
@@ -15,7 +15,7 @@ class EvolutionTest {
1515
1616 @Test
1717 fun getEvolutionChain1 () = runTest {
18- StaticPokeApi .getEvolutionChain(1 ).apply {
18+ LocalPokeApi .getEvolutionChain(1 ).apply {
1919 assertEquals(1 , id)
2020 assertEquals(null , babyTriggerItem)
2121 assertEquals(
@@ -60,7 +60,7 @@ class EvolutionTest {
6060
6161 @Test
6262 fun getEvolutionChain2 () = runTest {
63- StaticPokeApi .getEvolutionChain(109 ).apply {
63+ LocalPokeApi .getEvolutionChain(109 ).apply {
6464 assertNotNull(
6565 chain.evolvesTo.find {
6666 it.evolutionDetails.contains(
@@ -77,7 +77,7 @@ class EvolutionTest {
7777
7878 @Test
7979 fun getEvolutionChain3 () = runTest {
80- StaticPokeApi .getEvolutionChain(67 ).apply {
80+ LocalPokeApi .getEvolutionChain(67 ).apply {
8181 assertNotNull(
8282 chain.evolvesTo.find {
8383 it.evolutionDetails.contains(
@@ -93,7 +93,7 @@ class EvolutionTest {
9393
9494 @Test
9595 fun getEvolutionChain4 () = runTest {
96- StaticPokeApi .getEvolutionChain(67 ).apply {
96+ LocalPokeApi .getEvolutionChain(67 ).apply {
9797 assertNotNull(
9898 chain.evolvesTo.find {
9999 it.evolutionDetails.contains(
@@ -109,7 +109,7 @@ class EvolutionTest {
109109
110110 @Test
111111 fun getEvolutionChain5 () = runTest {
112- StaticPokeApi .getEvolutionChain(67 ).apply {
112+ LocalPokeApi .getEvolutionChain(67 ).apply {
113113 assertNotNull(
114114 chain.evolvesTo.find {
115115 it.evolutionDetails.contains(
@@ -126,7 +126,7 @@ class EvolutionTest {
126126
127127 @Test
128128 fun getEvolutionChain6 () = runTest {
129- StaticPokeApi .getEvolutionChain(67 ).apply {
129+ LocalPokeApi .getEvolutionChain(67 ).apply {
130130 assertNotNull(
131131 chain.evolvesTo.find {
132132 it.evolutionDetails.contains(
@@ -143,7 +143,7 @@ class EvolutionTest {
143143
144144 @Test
145145 fun getEvolutionChain7 () = runTest {
146- StaticPokeApi .getEvolutionChain(112 ).apply {
146+ LocalPokeApi .getEvolutionChain(112 ).apply {
147147 assertContains(
148148 chain.evolvesTo[0 ].evolvesTo[0 ].evolutionDetails,
149149 EvolutionDetail (
@@ -156,7 +156,7 @@ class EvolutionTest {
156156
157157 @Test
158158 fun getEvolutionChain8 () = runTest {
159- StaticPokeApi .getEvolutionChain(213 ).apply {
159+ LocalPokeApi .getEvolutionChain(213 ).apply {
160160 assertNotNull(
161161 chain.evolvesTo.find {
162162 it.evolutionDetails.contains(
@@ -173,7 +173,7 @@ class EvolutionTest {
173173
174174 @Test
175175 fun getEvolutionChain9 () = runTest {
176- StaticPokeApi .getEvolutionChain(178 ).apply {
176+ LocalPokeApi .getEvolutionChain(178 ).apply {
177177 assertNotNull(
178178 chain.evolvesTo.find {
179179 it.evolutionDetails.contains(
@@ -189,7 +189,7 @@ class EvolutionTest {
189189
190190 @Test
191191 fun getEvolutionChain10 () = runTest {
192- StaticPokeApi .getEvolutionChain(346 ).apply {
192+ LocalPokeApi .getEvolutionChain(346 ).apply {
193193 assertNotNull(
194194 chain.evolvesTo.find {
195195 it.evolutionDetails.contains(
@@ -206,7 +206,7 @@ class EvolutionTest {
206206
207207 @Test
208208 fun getEvolutionChain11 () = runTest {
209- StaticPokeApi .getEvolutionChain(47 ).apply {
209+ LocalPokeApi .getEvolutionChain(47 ).apply {
210210 assertNotNull(
211211 chain.evolvesTo.find {
212212 it.evolutionDetails.contains(
@@ -223,7 +223,7 @@ class EvolutionTest {
223223
224224 @Test
225225 fun getEvolutionChain12 () = runTest {
226- StaticPokeApi .getEvolutionChain(362 ).apply {
226+ LocalPokeApi .getEvolutionChain(362 ).apply {
227227 assertNotNull(
228228 chain.evolvesTo[0 ].evolvesTo.find {
229229 it.evolutionDetails.contains(
@@ -240,7 +240,7 @@ class EvolutionTest {
240240
241241 @Test
242242 fun getEvolutionChain13 () = runTest {
243- StaticPokeApi .getEvolutionChain(352 ).apply {
243+ LocalPokeApi .getEvolutionChain(352 ).apply {
244244 assertNotNull(
245245 chain.evolvesTo.find {
246246 it.evolutionDetails.contains(
@@ -257,7 +257,7 @@ class EvolutionTest {
257257
258258 @Test
259259 fun getEvolutionChain14 () = runTest {
260- StaticPokeApi .getEvolutionChain(116 ).apply {
260+ LocalPokeApi .getEvolutionChain(116 ).apply {
261261 assertNotNull(
262262 chain.evolvesTo.find {
263263 it.evolutionDetails.contains(
@@ -273,7 +273,7 @@ class EvolutionTest {
273273
274274 @Test
275275 fun getEvolutionChain15 () = runTest {
276- StaticPokeApi .getEvolutionChain(312 ).apply {
276+ LocalPokeApi .getEvolutionChain(312 ).apply {
277277 assertNotNull(
278278 chain.evolvesTo.find {
279279 it.evolutionDetails.contains(
@@ -289,15 +289,15 @@ class EvolutionTest {
289289
290290 @Test
291291 fun getEvolutionChain16 () = runTest {
292- StaticPokeApi .getEvolutionChain(72 ).apply {
292+ LocalPokeApi .getEvolutionChain(72 ).apply {
293293 assertEquals(NamedApiResource (" full-incense" , " item" , 293 ), babyTriggerItem)
294294 assertEquals(true , chain.isBaby)
295295 }
296296 }
297297
298298 @Test
299299 fun getEvolutionTrigger () = runTest {
300- StaticPokeApi .getEvolutionTrigger(1 ).apply {
300+ LocalPokeApi .getEvolutionTrigger(1 ).apply {
301301 assertEquals(1 , id)
302302 assertEquals(" level-up" , name)
303303 assertContains(
0 commit comments