caolan / caolan/nodeunit

BUG: Asserting after `test.done()` is allowed

オープン
#172 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.9k
フォーク
359
PR マージ指標
30日以内にマージされた PR はありません

説明

``` javascript
exports.test1 = function(test) {
test.expect(1);
test.ok(true, 'is true');
test.done();

// this should throw an error, however it passes
test.ok(true, 'is true2');
};
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reproducing the example using test.ok after test.done and trace how those entry points handle completion and later assertions. The work is done when an assertion after test.done throws the expected error while assertions before completion retain their current behavior, with the regression covered by the project's tests.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。