-
Notifications
You must be signed in to change notification settings - Fork 1
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 #40 from USB-CI3715/Desatacar-Visualmente-Pregunta…
…s-Urgentes añadir archivo de prueba para topic llamado topic.test.js
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var assert = require('assert'); | ||
Check failure on line 1 in test/test/topic.test.js GitHub Actions / lint-and-test / test
|
||
|
||
describe('Funcionalidad de Urgencia en Posts', function () { | ||
describe('#isUrgent', function () { | ||
Check failure on line 4 in test/test/topic.test.js GitHub Actions / lint-and-test / test
|
||
it('debería mostrar el ícono de urgencia cuando isUrgent es verdadero', function () { | ||
Check failure on line 5 in test/test/topic.test.js GitHub Actions / lint-and-test / test
|
||
const post = { isUrgent: true }; | ||
const shouldShowIcon = post.isUrgent; | ||
|
||
// Verifica que el icono se muestre cuando isUrgent es true | ||
assert.equal(shouldShowIcon, true); | ||
}); | ||
|
||
it('no debería mostrar el ícono de urgencia cuando isUrgent es falso', function () { | ||
const post = { isUrgent: false }; | ||
const shouldShowIcon = post.isUrgent; | ||
|
||
// Verifica que el icono no se muestre cuando isUrgent es false | ||
assert.equal(shouldShowIcon, false); | ||
}); | ||
}); | ||
}); |