-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated jest mock for uiRecordApi (#876)
- Loading branch information
1 parent
5141812
commit 8d90a90
Showing
10 changed files
with
1,110 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 29 additions & 32 deletions
61
force-app/main/default/lwc/contactInfo/__tests__/data/getRecord.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
{ | ||
"status": 0, | ||
"result": { | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
}, | ||
"Picture__c": { | ||
"displayValue": null, | ||
"value": "https://s3-us-west-2.amazonaws.com/dev-or-devrl-s3-bucket/sample-apps/people/amy_taylor.jpg" | ||
} | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
}, | ||
"Picture__c": { | ||
"displayValue": null, | ||
"value": "https://s3-us-west-2.amazonaws.com/dev-or-devrl-s3-bucket/sample-apps/people/amy_taylor.jpg" | ||
} | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} |
61 changes: 29 additions & 32 deletions
61
force-app/main/default/lwc/lmsSubscriberWebComponent/__tests__/data/getRecord.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
{ | ||
"status": 0, | ||
"result": { | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
}, | ||
"Picture__c": { | ||
"displayValue": null, | ||
"value": "https://s3-us-west-2.amazonaws.com/dev-or-devrl-s3-bucket/sample-apps/people/amy_taylor.jpg" | ||
} | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
}, | ||
"Picture__c": { | ||
"displayValue": null, | ||
"value": "https://s3-us-west-2.amazonaws.com/dev-or-devrl-s3-bucket/sample-apps/people/amy_taylor.jpg" | ||
} | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} |
53 changes: 25 additions & 28 deletions
53
force-app/main/default/lwc/lmsSubscriberWebComponent/__tests__/data/getRecordNoPicture.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
{ | ||
"status": 0, | ||
"result": { | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
} | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
} | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 25 additions & 28 deletions
53
force-app/main/default/lwc/wireGetRecordStaticContact/__tests__/data/getRecord.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
{ | ||
"status": 0, | ||
"result": { | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
} | ||
"apiName": "Contact", | ||
"childRelationships": {}, | ||
"eTag": "846fdcd21a53214d447e578adbe263c6", | ||
"fields": { | ||
"Email": { | ||
"displayValue": null, | ||
"value": "[email protected]" | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} | ||
"Name": { | ||
"displayValue": null, | ||
"value": "Amy Taylor" | ||
}, | ||
"Phone": { | ||
"displayValue": null, | ||
"value": "4152568563" | ||
}, | ||
"Title": { | ||
"displayValue": null, | ||
"value": "VP of Engineering" | ||
} | ||
}, | ||
"id": "0031700000pHcf8AAC", | ||
"lastModifiedById": "00517000002fESIAA2", | ||
"lastModifiedDate": "2019-02-15T10:33:07.000Z", | ||
"recordTypeInfo": null, | ||
"systemModstamp": "2019-02-15T10:33:07.000Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.