Skip to content

Commit

Permalink
Run iOS tests from the correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
langleyd committed Aug 9, 2023
1 parent b579582 commit 2ee3151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ jobs:
run: sudo xcode-select -switch /Applications/Xcode_14.2.app

- name: Tests
working-directory: platforms/ios/
run: exec ./ios-tests.sh
run: exec ./platforms/ios/ios-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,4 @@ import org.junit.Before
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class EmojibaseUnitTest {

lateinit var store: EmojibaseStore

@Before
fun setUp() {
store = EmojibaseDatasource().load()
}

@Test
fun testSpecificEmoji() {
assertEquals(store.categories.size, EmojibaseCategory.values().size)
val people = store.emojisFor(EmojibaseCategory.People)
assertNotNull(people)
val emoji = people?.first { it.label == "OK hand" }
assertEquals(emoji?.tags, listOf("hand", "ok"))
assertEquals(emoji?.shortcodes, listOf("ok_hand"))
assertEquals(emoji?.skins?.size, 5)
assertEquals(emoji?.skins?.last()?.unicode, "👌🏿")
}
}
class EmojibaseUnitTest {}

0 comments on commit 2ee3151

Please sign in to comment.