Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/replay' into kw/do-not-conv…
Browse files Browse the repository at this point in the history
…ert-sentry-events
  • Loading branch information
krystofwoldrich committed Jul 2, 2024
2 parents ca7e0a3 + 5f3a5c8 commit b8ba2e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ class RNSentryReplayBreadcrumbConverterTest {
mapOf("name" to "name7")))
assertEquals("label5(element5, file5) > label4(file4) > label3(element3) > label2", actual)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import XCTest

final class RNSentryReplayBreadcrumbConverterTests: XCTestCase {

func testNotConvertSentryEventBreadcrumb() {
let converter = RNSentryReplayBreadcrumbConverter()
let testBreadcrumb = Breadcrumb()
testBreadcrumb.category = "sentry.event"
let actual = converter.convert(from: testBreadcrumb)
XCTAssertNil(actual)
}

func testNotConvertSentryTransactionBreadcrumb() {
let converter = RNSentryReplayBreadcrumbConverter()
let testBreadcrumb = Breadcrumb()
testBreadcrumb.category = "sentry.transaction"
let actual = converter.convert(from: testBreadcrumb)
XCTAssertNil(actual)
}

func testTouchMessageReturnsNilOnEmptyArray() throws {
let actual = RNSentryReplayBreadcrumbConverter.getTouchPathMessage(from: [])
XCTAssertEqual(actual, nil);
Expand Down

0 comments on commit b8ba2e8

Please sign in to comment.