From 13d8a50a57c6ecb33f4b138b70f9c1942a7ecfe3 Mon Sep 17 00:00:00 2001 From: Abraham White Date: Wed, 30 May 2018 13:59:54 -0600 Subject: [PATCH] Update tests --- types/jsforce/jsforce-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/jsforce/jsforce-tests.ts b/types/jsforce/jsforce-tests.ts index 6c3895cae9..741b1875f7 100644 --- a/types/jsforce/jsforce-tests.ts +++ b/types/jsforce/jsforce-tests.ts @@ -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;