👽 Update Data deprecated init usager

This commit is contained in:
Ben Chatelain 2019-03-18 16:56:20 -06:00
parent 1aad8aa6b1
commit 82d30b5f9a

View file

@ -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)