From 9469db5a2be910ef713af0e0ca5c02ecd2a174ba Mon Sep 17 00:00:00 2001 From: Steve Flanders Date: Wed, 9 Sep 2020 16:16:11 -0400 Subject: [PATCH] Remove non-inclusive language from tests (#1500) Co-authored-by: Daniel Dyla --- .../opentelemetry-plugin-fetch/test/fetch.test.ts | 14 +++++++------- .../test/xhr.test.ts | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/opentelemetry-plugin-fetch/test/fetch.test.ts b/packages/opentelemetry-plugin-fetch/test/fetch.test.ts index e801dfe852..41e2a570c7 100644 --- a/packages/opentelemetry-plugin-fetch/test/fetch.test.ts +++ b/packages/opentelemetry-plugin-fetch/test/fetch.test.ts @@ -76,14 +76,14 @@ function createResource(resource = {}): PerformanceResourceTiming { ) as PerformanceResourceTiming; } -function createMasterResource(resource = {}): PerformanceResourceTiming { - const masterResource: any = createResource(resource); - Object.keys(masterResource).forEach((key: string) => { - if (typeof masterResource[key] === 'number') { - masterResource[key] = masterResource[key] + 30; +function createMainResource(resource = {}): PerformanceResourceTiming { + const mainResource: any = createResource(resource); + Object.keys(mainResource).forEach((key: string) => { + if (typeof mainResource[key] === 'number') { + mainResource[key] = mainResource[key] + 30; } }); - return masterResource; + return mainResource; } describe('fetch', () => { @@ -150,7 +150,7 @@ describe('fetch', () => { createResource({ name: fileUrl, }), - createMasterResource({ + createMainResource({ name: fileUrl, }) ); diff --git a/packages/opentelemetry-plugin-xml-http-request/test/xhr.test.ts b/packages/opentelemetry-plugin-xml-http-request/test/xhr.test.ts index 3f20238252..515598fbdd 100644 --- a/packages/opentelemetry-plugin-xml-http-request/test/xhr.test.ts +++ b/packages/opentelemetry-plugin-xml-http-request/test/xhr.test.ts @@ -112,14 +112,14 @@ function createResource(resource = {}): PerformanceResourceTiming { ) as PerformanceResourceTiming; } -function createMasterResource(resource = {}): PerformanceResourceTiming { - const masterResource: any = createResource(resource); - Object.keys(masterResource).forEach((key: string) => { - if (typeof masterResource[key] === 'number') { - masterResource[key] = masterResource[key] + 30; +function createMainResource(resource = {}): PerformanceResourceTiming { + const mainResource: any = createResource(resource); + Object.keys(mainResource).forEach((key: string) => { + if (typeof mainResource[key] === 'number') { + mainResource[key] = mainResource[key] + 30; } }); - return masterResource; + return mainResource; } describe('xhr', () => { @@ -180,7 +180,7 @@ describe('xhr', () => { createResource({ name: fileUrl, }), - createMasterResource({ + createMainResource({ name: fileUrl, }) );