Teste Unitário resolveProfessor.spec.js#110
Teste Unitário resolveProfessor.spec.js#110hadeoliveira wants to merge 23 commits intoufabc-next:masterfrom
Conversation
Agora o comando "Coverage" está funcional e o report é registrado no arquivo "coverage.lcov", deixando a função de análise dos resultados, para a geração de badge ou outras finalidades, de forma independente por meio de outros comandos, como o utilizado no CI em conjunto com o Codecov.
| name: 'Vanessa Kruth', | ||
| error: null, | ||
| }, | ||
| pratica: { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 8 spaces but found 12.
| pratica: { | |
| pratica: { |
| }, | ||
| { | ||
| teoria: { | ||
| name: 'Isidro', |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 10 spaces but found 16.
| name: 'Isidro', | |
| name: 'Isidro', |
| teoria: { | ||
| name: 'Vanessa Kruth', | ||
| error: null, | ||
| }, |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 8 spaces but found 12.
| }, | |
| }, |
| { | ||
| teoria: { | ||
| name: 'Vanessa Kruth', | ||
| error: null, |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 10 spaces but found 16.
| error: null, | |
| error: null, |
| error: null, | ||
| } | ||
| }, | ||
| ]; |
There was a problem hiding this comment.
Codacy has a fix for the issue: Extra semicolon.
| ]; | |
| ] |
| it('should return empty list when has not errors', function () { | ||
| const disciplinas = [ | ||
| { | ||
| teoria: { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 8 spaces but found 12.
| teoria: { | |
| teoria: { |
| pratica: { | ||
| name: 'Vanessa Kruth', | ||
| error: null, | ||
| } |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 8 spaces but found 12.
| } | |
| } |
| describe('teachers', function () { | ||
| it('should return empty list when has not errors', function () { | ||
| const disciplinas = [ | ||
| { |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 6 spaces but found 8.
| { | |
| { |
| const disciplinas = [ | ||
| { | ||
| teoria: { | ||
| name: 'Vanessa Kruth', |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 10 spaces but found 16.
| name: 'Vanessa Kruth', | |
| name: 'Vanessa Kruth', |
| { | ||
| teoria: { | ||
| name: 'Isidro', | ||
| error: 'Sala não encontrada', |
There was a problem hiding this comment.
Codacy has a fix for the issue: Expected indentation of 10 spaces but found 16.
| error: 'Sala não encontrada', | |
| error: 'Sala não encontrada', |
Change Request
Description
Implementação do teste unitário resolveProfessor.spec.js
How do I test this?
O teste pode ser feito executando o comando abaixo