Skip to content

Teste permission

Teste permission #121

Re-run triggered February 4, 2025 17:35
Status Failure
Total duration 1m 11s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 2 warnings
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
format
Process completed with exit code 2.
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/Utils/csvRead.test.js > readcsv > deve atualizar a situação dos usuários corretamente: src/Utils/csvRead.js#L50
Error: O arquivo CSV deve utilizar o ponto e vírgula (;) como separador. ❯ Module.readcsv src/Utils/csvRead.js:50:13 ❯ src/Utils/csvRead.test.js:56:20
src/Utils/csvRead.test.js > readcsv > deve lançar um erro se os usuários não forem um array: src/Utils/csvRead.test.js#L84
AssertionError: expected [Function] to throw error including 'Os dados recebidos não são um array.' but got 'O arquivo CSV deve utilizar o ponto e…' Expected: "Os dados recebidos não são um array." Received: "O arquivo CSV deve utilizar o ponto e vírgula (;) como separador." ❯ src/Utils/csvRead.test.js:84:5
src/Utils/csvRead.test.js > readcsv > deve lidar com erro ao atualizar o usuário: src/Utils/csvRead.js#L50
Error: O arquivo CSV deve utilizar o ponto e vírgula (;) como separador. ❯ Module.readcsv src/Utils/csvRead.js:50:13 ❯ src/Utils/csvRead.test.js:95:5
src/Utils/permissions.test.jsx > checkAction > should return false for action "write" in module "settings": src/Utils/permissions.test.jsx#L63
AssertionError: expected true to be false // Object.is equality - Expected + Received - false + true ❯ src/Utils/permissions.test.jsx:63:34
src/Utils/permissions.test.jsx > checkAction > should return true for action "view" in module "dashboard": src/Utils/permissions.test.jsx#L67
AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ src/Utils/permissions.test.jsx:67:33
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/MembershipRequests/index.jsx#L45
React Hook useEffect has a missing dependency: 'members'. Either include it or remove the dependency array