Skip to content

Commit 235d924

Browse files
committed
add dataFields to CommerceItemTests
1 parent 77fd11e commit 235d924

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/unit-tests/CommerceItemTests.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class CommerceItemTests: XCTestCase {
2828
url: "stand-alone-complex",
2929
imageUrl: "laughing-man",
3030
categories: ["section 9",
31-
"personnel transport"]).toDictionary()
31+
"personnel transport"],
32+
dataFields: ["color": "yellow",
33+
"count": 8]).toDictionary()
3234

3335
let expected: [AnyHashable: Any] = ["id": "THINKTANK",
3436
"name": "Tachikoma",
@@ -39,7 +41,9 @@ class CommerceItemTests: XCTestCase {
3941
"url": "stand-alone-complex",
4042
"imageUrl": "laughing-man",
4143
"categories": ["section 9",
42-
"personnel transport"]]
44+
"personnel transport"],
45+
"dataFields": ["color": "yellow",
46+
"count": 8]]
4347

4448
XCTAssertEqual(NSDictionary(dictionary: itemDictionary), NSDictionary(dictionary: expected))
4549
}

0 commit comments

Comments
 (0)