mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
👽 Update Data deprecated init usager
This commit is contained in:
parent
1aad8aa6b1
commit
82d30b5f9a
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ class NetworkManagerTests: XCTestCase {
|
|||
let manager = NetworkManager(session: session)
|
||||
|
||||
// Create data and tell the session to always return it
|
||||
let data = Data(bytes: [0, 1, 0, 1])
|
||||
let data = Data([0, 1, 0, 1])
|
||||
session.data = data
|
||||
|
||||
// Create a URL (using the file path API to avoid optionals)
|
||||
|
@ -34,7 +34,7 @@ class NetworkManagerTests: XCTestCase {
|
|||
let manager = NetworkManager(session: session)
|
||||
|
||||
// Create data and tell the session to always return it
|
||||
let data = Data(bytes: [0, 1, 0, 1])
|
||||
let data = Data([0, 1, 0, 1])
|
||||
session.data = data
|
||||
|
||||
// Create a URL (using the file path API to avoid optionals)
|
||||
|
|
Loading…
Reference in a new issue