Quellcode durchsuchen

Add test assert to unit test testCanSetLabel. (#625)

Natascha Fadeeva vor 6 Jahren
Ursprung
Commit
4ecdc8545f
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      Tests/SnapKitTests/Tests.swift

+ 2 - 0
Tests/SnapKitTests/Tests.swift

@@ -736,6 +736,8 @@ class SnapKitTests: XCTestCase {
     
     func testCanSetLabel() {
         self.container.snp.setLabel("Hello World")
+
+        XCTAssertEqual(self.container.snp.label(), "Hello World")
     }
     
     func testPriorityShortcuts() {