Skip to content

Commit 108a8b1

Browse files
committed
Add dates to ensure skipKeys doesn't break
1 parent 0043462 commit 108a8b1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Tests/ParseSwiftTests/ParseObjectBatchTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ class ParseObjectBatchTests: XCTestCase { // swiftlint:disable:this type_body_le
269269
var score2 = GameScore(score: 20)
270270

271271
score.objectId = "yarr"
272+
score.createdAt = Date()
273+
score.updatedAt = Date()
272274
score2.objectId = "yolo"
275+
score2.createdAt = Date()
276+
score2.updatedAt = Date()
273277

274278
let objects = [score, score2]
275279
let initialCommands = objects.map { $0.saveCommand() }

Tests/ParseSwiftTests/ParseObjectTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ class ParseObjectTests: XCTestCase { // swiftlint:disable:this type_body_length
491491
let className = score.className
492492
let objectId = "yarr"
493493
score.objectId = objectId
494+
score.createdAt = Date()
495+
score.updatedAt = Date()
494496

495497
let command = score.saveCommand()
496498
XCTAssertNotNil(command)

0 commit comments

Comments
 (0)