mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
Check the matching diagnostic manifest entry
This commit is contained in:
1 parent
3c6447528a
commit
44f8d5de70
1 file changed
+4
-1
@@ -55,7 +55,10 @@ class EnhancedSessionLogShareTest {
|
||||
assertEquals(1, manifest.getInt("schema"))
|
||||
assertEquals(session.name, manifest.getString("sessionId"))
|
||||
assertEquals(category, manifest.getString("category"))
|
||||
assertEquals("captured", manifest.getJSONArray("entries").getJSONObject(0).getString("status"))
|
||||
val entries = manifest.getJSONArray("entries")
|
||||
val record = (0 until entries.length()).map { entries.getJSONObject(it) }
|
||||
.single { it.optString("entry") == expected.getValue(category) }
|
||||
assertEquals("captured", record.getString("status"))
|
||||
}
|
||||
}
|
||||
SessionLogShare.clear(app)
|
||||
|
||||
Reference in new issue
Block a user