-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from DigiChanges/feat/LC/add-lint-rules
feat: update eslint dependencies and add eslint rules
- Loading branch information
Showing
66 changed files
with
238 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ interface IId | |
_id?: string | any; | ||
} | ||
|
||
export default IId; | ||
export default IId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ interface IKind | |
king: string; | ||
} | ||
|
||
export default IKind; | ||
export default IKind; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
declare type TypeAuth = 'authUser' | 'tokenDecode'; | ||
|
||
export default TypeAuth; | ||
export default TypeAuth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ describe('Start Login Test', () => | |
|
||
request = configServer.request; | ||
dbConnection = configServer.dbConnection; | ||
|
||
}); | ||
|
||
afterAll((async() => | ||
|
@@ -42,7 +41,6 @@ describe('Start Login Test', () => | |
|
||
expect(data.user.email).toStrictEqual('[email protected]'); | ||
expect(data.user.firstName).toStrictEqual('user'); | ||
|
||
}); | ||
|
||
test('Login SuperAdmin Success', async() => | ||
|
@@ -65,7 +63,6 @@ describe('Start Login Test', () => | |
|
||
expect(data.user.email).toStrictEqual('[email protected]'); | ||
expect(data.user.firstName).toStrictEqual('Super'); | ||
|
||
}); | ||
|
||
test('Login SuperAdmin Wrong Credentials', async() => | ||
|
@@ -87,7 +84,6 @@ describe('Start Login Test', () => | |
expect(statusCode).toStrictEqual('HTTP_FORBIDDEN'); | ||
|
||
expect(message).toStrictEqual('Error credentials.'); | ||
|
||
}); | ||
|
||
test('Login Operator unverified', async() => | ||
|
@@ -130,6 +126,5 @@ describe('Start Login Test', () => | |
expect(statusCode).toStrictEqual('HTTP_FORBIDDEN'); | ||
|
||
expect(message).toStrictEqual('Your role is disable.'); | ||
|
||
}); | ||
}); |
Oops, something went wrong.