Update all references to JSONAPITestLib to reflect renaming

This commit is contained in:
Mathew Polzin
2019-01-13 18:35:20 -08:00
parent 25bda795a7
commit 8726bcc9fa
14 changed files with 16 additions and 16 deletions
@@ -2,7 +2,7 @@
import Foundation
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
/*******
@@ -11,12 +11,12 @@ Please enjoy these examples, but allow me the forced casting and the lack of err
********/
// MARK: - Literal Expressibility
// The JSONAPITestLib provides literal expressibility for key types to
// The JSONAPITesting framework provides literal expressibility for key types to
// make creating tests easier
let dog = Dog(id: "1234", attributes: Dog.Attributes(name: "Buddy"), relationships: Dog.Relationships(owner: nil), meta: .none, links: .none)
// MARK: - JSON API structure checking
// The JSONAPITestLib provides a `check` function for each Entity type
// The JSONAPITesting framework provides a `check` function for each Entity type
// that uses reflection to catch mistakes that are not forbidden by
// Swift's type system but will result in unexpected results when
// encoding/decoding. It is a good idea to add a `check` to each of
+1 -1
View File
@@ -1,6 +1,6 @@
//
// EntityCheck.swift
// JSONAPITestLib
// JSONAPITesting
//
// Created by Mathew Polzin on 11/27/18.
//
@@ -1,6 +1,6 @@
//
// Optional+Literal.swift
// JSONAPITestLib
// JSONAPITesting
//
// Created by Mathew Polzin on 11/29/18.
//
@@ -1,6 +1,6 @@
//
// Relationship+Literal.swift
// JSONAPITestLib
// JSONAPITesting
//
// Created by Mathew Polzin on 11/27/18.
//
@@ -7,7 +7,7 @@
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
class Attribute_LiteralTests: XCTestCase {
@@ -7,7 +7,7 @@
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
// Successes are fairly well-checked by the EntityTests in the JSONAPITests target.
// We will confirm failure cases are working in this file.
@@ -7,7 +7,7 @@
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
extension Int: RawIdType {}
@@ -7,7 +7,7 @@
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
class Relationship_LiteralTests: XCTestCase {
@@ -7,7 +7,7 @@
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
class Attribute_FunctorTests: XCTestCase {
func test_mapGuaranteed() {
@@ -7,7 +7,7 @@
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
class ComputedPropertiesTests: XCTestCase {
func test_DecodeIgnoresComputed() {
@@ -7,7 +7,7 @@
import XCTest
@testable import JSONAPI
import JSONAPITestLib
import JSONAPITesting
class CustomAttributesTests: XCTestCase {
func test_customDecode() {
+1 -1
View File
@@ -7,7 +7,7 @@
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
class EntityTests: XCTestCase {
@@ -8,7 +8,7 @@
import Foundation
import XCTest
@testable import JSONAPI
import JSONAPITestLib
import JSONAPITesting
private struct TransformedWrapper<Value: Equatable & Codable, Transform: Transformer>: Codable where Value == Transform.From {
let x: TransformedAttribute<Value, Transform>
@@ -8,7 +8,7 @@
import Foundation
import XCTest
import JSONAPI
import JSONAPITestLib
import JSONAPITesting
func testEncoded<E: EntityType>(entity: E) {
let encodedEntityData = encoded(value: entity)