mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Update tests
This commit is contained in:
@@ -354,12 +354,12 @@ salesforceConnection.streaming.topic("InvoiceStatementUpdates").subscribe((messa
|
||||
|
||||
async function testDescribe() {
|
||||
const global: sf.DescribeGlobalResult = await salesforceConnection.describeGlobal();
|
||||
const globalCached: sf.DescribeGlobalResult = await salesforceConnection.describeGlobal$();
|
||||
const globalCached: sf.DescribeGlobalResult = salesforceConnection.describeGlobal$();
|
||||
const globalCachedCorrectly = global === globalCached;
|
||||
|
||||
globalCached.sobjects.forEach(async (sobject: sf.DescribeGlobalSObjectResult) => {
|
||||
const object: sf.DescribeSObjectResult = await salesforceConnection.describe(sobject.name);
|
||||
const cachedObject: sf.DescribeSObjectResult = await salesforceConnection.describe$(sobject.name);
|
||||
const cachedObject: sf.DescribeSObjectResult = salesforceConnection.describe$(sobject.name);
|
||||
|
||||
object.fields.forEach(field => {
|
||||
const type: sf.FieldType = field.type;
|
||||
|
||||
Reference in New Issue
Block a user