Currently, if any of the 4 oauth params are specified, the test on L27 will pass and will not throw the error on L28.
Consider the following examples:
var a = true, b = true, c = true;
!(a || b || c ); // false as expected
var a = true, b = true, c = null;
!(a || b || c ); // still false, but missing required param `c`!
// fixed version:
var a = true, b = true, c = null;
(!a || !b || !c); // true as expected
Also consider handling status code 401 errors inside Twitter.prototype.connect.
Currently, if any of the 4 oauth params are specified, the test on L27 will pass and will not throw the error on L28.
Consider the following examples:
Also consider handling status code 401 errors inside
Twitter.prototype.connect
.