aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-01-13 00:32:09 -0800
committerAllan Wang <me@allanwang.ca>2021-01-13 00:32:09 -0800
commit8fe2427cff223a509441545227ac58b215903929 (patch)
tree358c9a8421f1ae5b456d2d5d9e8d6b1453909bfe /app/src/test/kotlin
parenta99ce272195c132c23379f28278339c88b356da1 (diff)
downloadfrost-8fe2427cff223a509441545227ac58b215903929.tar.gz
frost-8fe2427cff223a509441545227ac58b215903929.tar.bz2
frost-8fe2427cff223a509441545227ac58b215903929.zip
Fix theme provider test
Diffstat (limited to 'app/src/test/kotlin')
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/injectors/ThemeProviderTest.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/injectors/ThemeProviderTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/injectors/ThemeProviderTest.kt
index f59980d2..e1ef6225 100644
--- a/app/src/test/kotlin/com/pitchedapps/frost/injectors/ThemeProviderTest.kt
+++ b/app/src/test/kotlin/com/pitchedapps/frost/injectors/ThemeProviderTest.kt
@@ -16,6 +16,8 @@
*/
package com.pitchedapps.frost.injectors
+import com.pitchedapps.frost.enums.Theme
+import com.pitchedapps.frost.enums.ThemeCategory
import java.io.File
import kotlin.test.Test
import kotlin.test.assertTrue
@@ -24,9 +26,11 @@ class ThemeProviderTest {
@Test
fun verifyAssetsExist() {
- ThemeProvider.values().forEach { asset ->
- val file = File("src/web/assets/css/${asset.folder}/${asset.file}").absoluteFile
- assertTrue(file.exists(), "${asset.name} not found at ${file.path}")
+ ThemeCategory.values().forEach { category ->
+ Theme.values.filter { it != Theme.DEFAULT }.forEach { theme ->
+ val file = File("src/web/assets/css/${category.folder}/themes/${theme.file}").absoluteFile
+ assertTrue(file.exists(), "${theme.name} not found at ${file.path}")
+ }
}
}
}