Support backward compatibility with warning message for handling promise.
Update invalid test cases
expect(foo, "bar") always return true and the correct way is assert.equal(foo, "bar")
if (err) done(err); done function must call if there is any error. Otherwise the unit test asserting will be mark as error and not showing the failed result properly.
Support backward compatibility with warning message for handling promise.
Update invalid test cases
expect(foo, "bar")
always return true and the correct way isassert.equal(foo, "bar")
if (err) done(err);
done function must call if there is any error. Otherwise the unit test asserting will be mark as error and not showing the failed result properly.