Skip to content

Commit 615bee9

Browse files
committed
Use instances instead of singleton in tests
1 parent ff63137 commit 615bee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ShouterTests/ShouterTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import XCTest
1212
class ShouterTests: XCTestCase {
1313

1414
func testNotify() {
15-
let shouter = Shouter.default
15+
let shouter = Shouter()
1616

1717
let object = MockClass()
1818
shouter.register(MockProtocol.self, observer: object)
@@ -26,7 +26,7 @@ class ShouterTests: XCTestCase {
2626
}
2727

2828
func testRemove() {
29-
let shouter = Shouter.default
29+
let shouter = Shouter()
3030

3131
let expectation = self.expectation(description: "Notify closure must not be called")
3232
expectation.isInverted = true
@@ -43,7 +43,7 @@ class ShouterTests: XCTestCase {
4343
}
4444

4545
func testRemoveWhileNotifying() {
46-
let shouter = Shouter.default
46+
let shouter = Shouter()
4747

4848
let expected = self.expectation(description: "Notify closure should be called")
4949
let notExpected = self.expectation(description: "Notify closure must not be called")

0 commit comments

Comments
 (0)