Add test for matching request header with regex

This commit is contained in:
Wim
2015-02-11 16:16:38 +13:00
parent 56068d3354
commit 85a4f89e84

View File

@@ -72,7 +72,10 @@ inst = inst.twice();
inst = inst.thrice();
inst = inst.defaultReplyHeaders(value);
inst = inst.matchHeader(str, str);
inst = inst.matchHeader(str, regex);
inst = inst.matchHeader(str, (val: string) => true);
inst = inst.delay(num);
inst = inst.delayConnection(num);
@@ -105,4 +108,4 @@ nock.recorder.rec({
});
strings = nock.recorder.play();
objects = nock.recorder.play();
objects = nock.recorder.play();