diff --git a/Tests/ReactBridgeTests/ReactBridgeTests.swift b/Tests/ReactBridgeTests/ReactBridgeTests.swift index cb8493d..0d7f47a 100644 --- a/Tests/ReactBridgeTests/ReactBridgeTests.swift +++ b/Tests/ReactBridgeTests/ReactBridgeTests.swift @@ -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 {