Merge pull request #39 from fga-eps-mds/fixes_relase #109
ci.yml
on: push
test
1m 2s
build
0s
sonarcloud
0s
Annotations
21 errors and 5 warnings
format
Process completed with exit code 1.
|
lint:
src/Components/CancelInformationModal/index.jsx#L1
'React' is defined but never used
|
lint:
src/Components/CancelInformationModal/index.jsx#L4
'onClose' is missing in props validation
|
lint:
src/Components/CancelInformationModal/index.jsx#L4
'onConfirm' is missing in props validation
|
lint:
src/Components/CancelInformationModal/index.jsx#L4
'cancelDate' is missing in props validation
|
lint:
src/Components/CancelInformationModal/index.jsx#L4
'setCancelDate' is missing in props validation
|
lint:
src/Components/CancelInformationModal/index.jsx#L4
'justification' is missing in props validation
|
lint:
src/Components/CancelInformationModal/index.jsx#L4
'setJustification' is missing in props validation
|
lint:
src/Components/CanceledModal/index.jsx#L1
'React' is defined but never used
|
lint:
src/Components/CanceledModal/index.jsx#L4
'onClose' is missing in props validation
|
lint:
src/Components/ClientInformationModal/index.jsx#L1
'React' is defined but never used
|
src/Routes/permissionProtect.test.jsx > PermissionProtect Component > should navigate to '/unauthorized' when user does not have permission:
src/Routes/permissionProtect.test.jsx#L75
TestingLibraryElementError: Unable to find an element with the text: Unauthorized. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div>
Protected Content
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div>
Protected Content
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/Routes/permissionProtect.test.jsx:75:11
|
src/Routes/permissionProtect.test.jsx > PermissionProtect Component > should navigate to '/unauthorized' when user role is not defined:
src/Routes/permissionProtect.test.jsx#L83
TestingLibraryElementError: Unable to find an element with the text: Unauthorized. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div>
Protected Content
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div>
Protected Content
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/Routes/permissionProtect.test.jsx:83:11
|
src/Services/organService.test.js > Organ Service > should create an organ:
src/Services/organService.test.js#L38
AssertionError: expected "spy" to be called with arguments: [ 'organ/create', …(2) ]
Received:
1st spy call:
Array [
"organ/create",
Object {
"lotacao": "Setor 1",
"orgao": "Financeiro",
},
Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
"params": Object {
"action": "create",
"moduleName": "users",
"userId": "123456",
},
},
]
Number of calls: 1
❯ src/Services/organService.test.js:38:27
|
src/Services/organService.test.js > Organ Service > should list all organs:
src/Services/organService.test.js#L72
AssertionError: expected "spy" to be called with arguments: [ 'organ/list' ]
Received:
1st spy call:
Array [
"organ/list",
+ Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
+ },
]
Number of calls: 1
❯ src/Services/organService.test.js:72:26
|
src/Services/organService.test.js > Organ Service > should update an organ:
src/Services/organService.test.js#L82
AssertionError: expected "spy" to be called with arguments: [ 'organ/update/789', …(2) ]
Received:
1st spy call:
Array [
"organ/update/789",
Object {
"updatedData": Object {
"lotacao": "Setor 2",
"orgao": "Financeiro",
},
},
Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
"params": Object {
"action": "update",
"moduleName": "users",
"userId": "123456",
},
},
]
Number of calls: 1
❯ src/Services/organService.test.js:82:28
|
src/Services/organService.test.js > Organ Service > should get an organ by id:
src/Services/organService.test.js#L102
AssertionError: expected "spy" to be called with arguments: [ 'organ/get/789' ]
Received:
1st spy call:
Array [
- "organ/get/789",
+ "organ/list",
+ Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
+ },
]
2nd spy call:
Array [
"organ/get/789",
+ Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
+ },
]
Number of calls: 2
❯ src/Services/organService.test.js:102:26
|
src/Services/organService.test.js > Organ Service > should delete an organ by id:
src/Services/organService.test.js#L111
AssertionError: expected "spy" to be called with arguments: [ 'organ/delete/789', …(1) ]
Received:
1st spy call:
Array [
"organ/delete/789",
Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
"params": Object {
"action": "delete",
"moduleName": "users",
"userId": "123456",
},
},
]
Number of calls: 1
❯ src/Services/organService.test.js:111:29
|
src/Services/userService.test.js > User Service > should create a new user:
src/Services/userService.test.js#L170
AssertionError: expected "spy" to be called with arguments: [ '/signup', …(1) ]
Received:
1st spy call:
Array [
"/signup",
Object {
"email": "[email protected]",
- "headers": Object {
- "Authorization": "***",
- },
"name": "New User",
"params": Object {
"action": "create",
"moduleName": "users",
"userId": "123456",
},
"phone": "12345",
"role": "admin",
"status": "active",
+ },
+ Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
},
]
Number of calls: 1
❯ src/Services/userService.test.js:170:27
|
src/Services/userService.test.js > User Service > should log and throw an error when API call fails:
src/Services/userService.test.js#L512
AssertionError: expected "error" to be called with arguments: [ …(2) ]
Received:
1st error call:
Array [
- "Erro ao atualizar usuário com ID 123456:",
+ " FOI AQUI Erro ao atualizar usuário com ID 123456:",
[Error: API error],
]
Number of calls: 1
❯ src/Services/userService.test.js:512:29
|
src/Utils/permissions.test.jsx > checkModule > should return false for non-existing module "profile":
src/Utils/permissions.test.jsx#L35
AssertionError: expected true to be false // Object.is equality
- Expected
+ Received
- false
+ true
❯ src/Utils/permissions.test.jsx:35:49
|
format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint:
src/Pages/Protected/DataImport/index.jsx#L50
React Hook useEffect has a missing dependency: 'storagedUser.token'. Either include it or remove the dependency array
|
lint:
src/Pages/Protected/FinancialMovements/FinancialList/index.jsx#L47
React Hook useEffect has a missing dependency: 'storagedUser.token'. Either include it or remove the dependency array
|
lint:
src/Pages/Protected/MembershipRequests/index.jsx#L45
React Hook useEffect has a missing dependency: 'members'. Either include it or remove the dependency array
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|