Skip to content

Commit 7eae945

Browse files
author
Simon
committed
test
1 parent 917964e commit 7eae945

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Tests/ConfettiSwiftUITests/ConfettiSwiftUITests.swift

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import XCTest
22
@testable import ConfettiSwiftUI
33

4+
import SwiftUI
5+
46
final class ConfettiSwiftUITests: XCTestCase {
7+
@State var counter = 0
8+
59
func testExample() {
6-
// This is an example of a functional test case.
7-
// Use XCTAssert and related functions to verify your tests produce the correct
8-
// results.
9-
// XCTAssertEqual(ConfettiSwiftUI(text: "Hello World").text, "Hello, World!")
10+
ConfettiSwiftUI.ConfettiCannon(counter:$counter)
11+
Button("Animation"){
12+
self.counter += 1
13+
}
1014
}
1115

1216
static var allTests = [

0 commit comments

Comments
 (0)