Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit e6e5dd4

Browse files
committed
fix validation tests
1 parent 2ca5c68 commit e6e5dd4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
/*.xcodeproj
55
Package.pins
66
Package.resolved
7+
DerivedData
8+

Diff for: Tests/ValidationTests/ValidationTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ValidationTests: XCTestCase {
1010
try user.validate()
1111
try user.pet.validate()
1212

13-
let secondUser = User(name: "Natan", age: 30, pet: Pet(name: "Nina", age: 4))
13+
let secondUser = User(name: "Natan", age: 30, pet: Pet(name: "Nina", age: 4), preferedColors: ["pink"])
1414
secondUser.profilePictureURL = "https://www.somedomain.com/somePath.png"
1515
secondUser.email = "[email protected]"
1616
try secondUser.validate()

0 commit comments

Comments
 (0)