Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PROJETO-BNCC
API-BNCC
Commits
572d96de
Commit
572d96de
authored
1 year ago
by
Erick Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrigindo testes
parent
13ba6986
Pipeline
#1250
passed with stage
in 3 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/routes/discussao.spec.js
test/routes/discussao.spec.js
+4
-4
No files found.
test/routes/discussao.spec.js
View file @
572d96de
...
...
@@ -82,7 +82,7 @@ describe("Teste Postagem",() => {
.
expect
(
200
);
expect
(
res
.
body
.
conteudo
).
toBe
(
conteudoDiscussao
.
conteudo
);
expect
(
res
.
body
.
editado
).
toBeTruthy
();
expect
(
res
.
body
.
updated
).
toBeTruthy
();
expect
(
res
.
body
.
imagens
).
toBeUndefined
();
});
...
...
@@ -219,8 +219,8 @@ describe("Teste Postagem",() => {
.
expect
(
200
);
const
comentario
=
res
.
body
;
expect
(
comentario
.
editado
).
toBeTruthy
();
expect
(
comentario
.
delet
ado
).
toBeTruthy
();
expect
(
comentario
.
updated
).
toBeTruthy
();
expect
(
comentario
.
delet
ed
).
toBeTruthy
();
expect
(
comentario
.
conteudo
).
toBe
(
"
[deletado]
"
);
expect
(
comentario
.
usuariosMencionados
).
toBeUndefined
();
...
...
@@ -241,7 +241,7 @@ describe("Teste Postagem",() => {
.
expect
(
200
);
const
discussao
=
res
.
body
;
expect
(
discussao
.
delet
ado
).
toBeTruthy
();
expect
(
discussao
.
delet
ed
).
toBeTruthy
();
expect
(
discussao
.
titulo
).
toBe
(
"
[deletado]
"
);
expect
(
discussao
.
assuntos
).
toBeUndefined
();
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment