dead-claudia / thallium

A simple, extensible JavaScript test framework (work in progress)
18 stars 4 forks source link

The console buffering code is wrong #65

Open dead-claudia opened 6 years ago

dead-claudia commented 6 years ago

The .write callback does not work - it only listens for "drain", not errors as well. Instead, I should wait for "error" and "drain" both, resolving/rejecting after the first one hits.

(Why does console printing have to be so hard?)