Skip to content

Commit 0a61908

Browse files
committed
update tests
1 parent 2256d0f commit 0a61908

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Tests/swiftui-loop-videoplayerTests/testPlayerInitialization.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ final class testPlayerInitialization: XCTestCase {
99
func testInitializationWithCustomParameters() {
1010
let playbackCommand = PlaybackCommand.pause // Example of a non-default command
1111
let commandBinding = Binding.constant(playbackCommand)
12-
let playerView = ExtPlayerView(
12+
let playerView = ExtVideoPlayer(
1313
fileName: "swipe",
1414
ext: "mov",
1515
gravity: .resizeAspectFill,
@@ -31,7 +31,7 @@ final class testPlayerInitialization: XCTestCase {
3131

3232
// Test initialization with default parameters
3333
func testInitializationWithDefaultParameters() {
34-
let playerView = ExtPlayerView(fileName: "swipe")
34+
let playerView = ExtVideoPlayer(fileName: "swipe")
3535

3636
XCTAssertEqual(playerView.settings.name, "swipe")
3737
XCTAssertEqual(playerView.settings.ext, "mp4") // Default extension
@@ -45,7 +45,7 @@ final class testPlayerInitialization: XCTestCase {
4545

4646
// Test the initializer that takes a closure returning VideoSettings
4747
func testExtPlayerView_InitializesWithValues() {
48-
let playerView = ExtPlayerView{
48+
let playerView = ExtVideoPlayer{
4949
VideoSettings{
5050
SourceName("swipe")
5151
Ext("mp8") // Set default extension here If not provided then mp4 is default
@@ -68,7 +68,7 @@ final class testPlayerInitialization: XCTestCase {
6868

6969
// Test the initializer that takes a closure returning VideoSettings
7070
func testExtPlayerView_InitializesWithClosureProvidedSettings() {
71-
let playerView = ExtPlayerView {
71+
let playerView = ExtVideoPlayer {
7272
VideoSettings {
7373
SourceName("swipe")
7474
Ext("mp8")
@@ -102,7 +102,7 @@ final class testPlayerInitialization: XCTestCase {
102102
}
103103
}
104104
let settings = Binding.constant(initialSettings)
105-
let playerView = ExtPlayerView(settings: settings, command: .constant(.pause))
105+
let playerView = ExtVideoPlayer(settings: settings, command: .constant(.pause))
106106

107107
XCTAssertEqual(settings.wrappedValue.name, "swipe")
108108
XCTAssertEqual(settings.wrappedValue.ext, "mkv")

Tests/swiftui-loop-videoplayerTests/testVideoStreaming.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class testVideoStreaming: XCTestCase {
1818
return
1919
}
2020

21-
let _ = ExtPlayerView(fileName: filePath)
21+
let _ = ExtVideoPlayer(fileName: filePath)
2222
// Use the filePath as needed for your tests
2323
print("Video file path: \(filePath)")
2424

0 commit comments

Comments
 (0)