caolan / caolan/nodeunit

when `actual` is undefined, AssertionError == Assertion Message.

Aperta
#220 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
1.9k
Fork
359
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

example:

```
module.exports.myTest = function (test) {
test.expect(1);

test.equal(undefined, 2, "some message")

test.done();
}

/*

$ nodeunit test.js

test.js
✖ myTest

Assertion Message: some message
AssertionError: some message // should say undefined == 2

*/
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Reproduce the issue with the provided nodeunit test case, then trace the assertion-error formatting used by test.equal when actual is undefined. Done means the output includes the compared values, such as “undefined == 2”, while retaining the supplied assertion message.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
testing
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.