mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-08-31 14:39:48 +08:00
add ability to call self-signed or invalid certificate clients
This commit is contained in:
+15
@@ -181,3 +181,18 @@ test('proxies of functions', { skip: !proxy }, function (t) {
|
||||
t.ok(isCallable(proxy), 'proxies of functions are callable');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('throwing functions', function (t) {
|
||||
t.plan(1);
|
||||
|
||||
var thrower = function (a) { return a.b; };
|
||||
t.ok(isCallable(thrower), 'a function that throws is callable');
|
||||
});
|
||||
|
||||
/* globals document: false */
|
||||
test('document.all', { skip: typeof document !== 'object' }, function (t) {
|
||||
t.notOk(isCallable(document), 'document is not callable');
|
||||
t.ok(isCallable(document.all), 'document.all is callable');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user