mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
fe189fcfed
commit
23062901c0
@@ -46,14 +46,14 @@ class AudioPlayerStateTests: XCTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
func testAttach() async throws {
|
||||
func testAttach() {
|
||||
audioPlayerState.attachAudioPlayer(audioPlayerMock)
|
||||
|
||||
XCTAssert(audioPlayerState.isAttached)
|
||||
XCTAssertEqual(audioPlayerState.playbackState, .loading)
|
||||
}
|
||||
|
||||
func testDetach() async throws {
|
||||
func testDetach() {
|
||||
audioPlayerState.attachAudioPlayer(audioPlayerMock)
|
||||
|
||||
audioPlayerState.detachAudioPlayer()
|
||||
@@ -103,13 +103,13 @@ class AudioPlayerStateTests: XCTestCase {
|
||||
XCTAssertEqual(audioPlayerState.playerButtonPlaybackState, .playing)
|
||||
}
|
||||
|
||||
func testReportError() async throws {
|
||||
func testReportError() {
|
||||
XCTAssertEqual(audioPlayerState.playbackState, .stopped)
|
||||
audioPlayerState.reportError()
|
||||
XCTAssertEqual(audioPlayerState.playbackState, .error)
|
||||
}
|
||||
|
||||
func testUpdateProgress() async throws {
|
||||
func testUpdateProgress() async {
|
||||
audioPlayerState.attachAudioPlayer(audioPlayerMock)
|
||||
|
||||
// If we try to set a negative progress, the new progress must be 0.0
|
||||
|
||||
Reference in New Issue
Block a user