Skip to content

Commit

Permalink
Updated code coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhvorost committed May 2, 2024
1 parent e3d535d commit 35edf5c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Tests/ReactBridgeTests/ReactBridgeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,27 @@ final class ReactPropertyTests: XCTestCase {
)
}

func test_no_type() {
let diagnostic = DiagnosticSpec(message: ErrorMessage.varNoType(name: "a").message, line: 3, column: 7)

assertMacroExpansion(
"""
class View {
@ReactProperty
let a = 10
}
""",
expandedSource:
"""
class View {
let a = 10
}
""",
diagnostics: [diagnostic],
macros: macros
)
}

func test_multiple() {
// SwiftSyntaxMacroExpansion
enum MacroApplicationError: String {
Expand Down

0 comments on commit 35edf5c

Please sign in to comment.