Skip to content

Commit

Permalink
Remove non-inclusive language from tests (#1500)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Dyla <[email protected]>
  • Loading branch information
flands and dyladan authored Sep 9, 2020
1 parent f56fba9 commit 9469db5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions packages/opentelemetry-plugin-fetch/test/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -150,7 +150,7 @@ describe('fetch', () => {
createResource({
name: fileUrl,
}),
createMasterResource({
createMainResource({
name: fileUrl,
})
);
Expand Down
14 changes: 7 additions & 7 deletions packages/opentelemetry-plugin-xml-http-request/test/xhr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -180,7 +180,7 @@ describe('xhr', () => {
createResource({
name: fileUrl,
}),
createMasterResource({
createMainResource({
name: fileUrl,
})
);
Expand Down

0 comments on commit 9469db5

Please sign in to comment.