Skip to content

Commit

Permalink
[TS migration][GithubUtilsTest] Disabled name convention rule for the…
Browse files Browse the repository at this point in the history
… entire file
  • Loading branch information
ruben-rebelo committed Feb 20, 2024
1 parent 4535da7 commit 960ebb7
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/unit/GithubUtilsTest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */

/**
* @jest-environment node
*/
Expand All @@ -24,7 +26,6 @@ type Label = {
id: number;
number?: number;
isVerified?: boolean;
// eslint-disable-next-line @typescript-eslint/naming-convention
node_id: string;
url: string;
name: string;
Expand Down Expand Up @@ -72,7 +73,6 @@ beforeAll(() => {
Promise.resolve({
data: {
...arg,
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/issues/29',
},
}),
Expand Down Expand Up @@ -100,7 +100,6 @@ describe('GithubUtils', () => {
labels: [
{
id: 2783847782,
// eslint-disable-next-line @typescript-eslint/naming-convention
node_id: 'MDU6TGFiZWwyNzgzODQ3Nzgy',
url: 'https://api.github.com/repos/Andrew-Test-Org/Public-Test-Repo/labels/StagingDeployCash',
name: 'StagingDeployCash',
Expand Down Expand Up @@ -142,7 +141,6 @@ describe('GithubUtils', () => {
description: '',
id: 2783847782,
name: 'StagingDeployCash',
// eslint-disable-next-line @typescript-eslint/naming-convention
node_id: 'MDU6TGFiZWwyNzgzODQ3Nzgy',
url: 'https://api.github.com/repos/Andrew-Test-Org/Public-Test-Repo/labels/StagingDeployCash',
},
Expand Down Expand Up @@ -323,53 +321,46 @@ describe('GithubUtils', () => {
{
number: 1,
title: 'Test PR 1',
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/pull/1',
user: {login: 'testUser'},
labels: [],
},
{
number: 2,
title: 'Test PR 2',
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/pull/2',
user: {login: 'testUser'},
labels: [],
},
{
number: 3,
title: 'Test PR 3',
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/pull/3',
user: {login: 'testUser'},
labels: [],
},
{
number: 4,
title: '[NO QA] Test No QA PR uppercase',
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/pull/4',
user: {login: 'testUser'},
labels: [],
},
{
number: 5,
title: '[NoQa] Test No QA PR Title Case',
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/pull/5',
user: {login: 'testUser'},
labels: [],
},
{
number: 6,
title: '[Internal QA] Test Internal QA PR',
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/pull/6',
user: {login: 'testUser'},
labels: [
{
id: 1234,
// eslint-disable-next-line @typescript-eslint/naming-convention
node_id: 'MDU6TGFiZWwyMDgwNDU5NDY=',
url: 'https://api.github.com/Expensify/App/labels/InternalQA',
name: 'InternalQA',
Expand All @@ -389,13 +380,11 @@ describe('GithubUtils', () => {
{
number: 7,
title: '[Internal QA] Another Test Internal QA PR',
// eslint-disable-next-line @typescript-eslint/naming-convention
html_url: 'https://github.com/Expensify/App/pull/7',
user: {login: 'testUser'},
labels: [
{
id: 1234,
// eslint-disable-next-line @typescript-eslint/naming-convention
node_id: 'MDU6TGFiZWwyMDgwNDU5NDY=',
url: 'https://api.github.com/Expensify/App/labels/InternalQA',
name: 'InternalQA',
Expand Down

0 comments on commit 960ebb7

Please sign in to comment.