Approval-based snapshot testing library for Go (mirror)
at main 42 lines 767 B view raw
1--- 2title: SnapJSON Complex API Response 3test_name: TestSnapJsonComplexAPI 4file_name: shutter_test.go 5version: 0.1.0 6--- 7{ 8 "code": 200, 9 "data": { 10 "pagination": { 11 "page": 1, 12 "per_page": 10, 13 "total": 3, 14 "total_pages": 1 15 }, 16 "users": [ 17 { 18 "active": true, 19 "department": "Engineering", 20 "id": 1, 21 "name": "Alice", 22 "role": "admin" 23 }, 24 { 25 "active": true, 26 "department": "Sales", 27 "id": 2, 28 "name": "Bob", 29 "role": "user" 30 }, 31 { 32 "active": false, 33 "department": "Marketing", 34 "id": 3, 35 "name": "Charlie", 36 "role": "user" 37 } 38 ] 39 }, 40 "status": "success", 41 "timestamp": "2023-11-18T21:45:30Z" 42}