diff options
| author | jw255 | 2018-04-14 18:26:38 +0100 |
|---|---|---|
| committer | jw255 | 2018-04-14 18:26:38 +0100 |
| commit | 5f687384dfeb807867c5d36bb83f672800599de6 (patch) | |
| tree | 79640c2af975681f1f36047cb0eac6154081e7bc /src/matcher | |
| parent | fixed 1 test in auth.routes.test.ts (diff) | |
| download | medicine-5f687384dfeb807867c5d36bb83f672800599de6.tar.gz medicine-5f687384dfeb807867c5d36bb83f672800599de6.zip | |
confirmed matcher doesn’t like arrays
Diffstat (limited to 'src/matcher')
| -rw-r--r-- | src/matcher/options.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/matcher/options.ts b/src/matcher/options.ts index 9c78554..988d22b 100644 --- a/src/matcher/options.ts +++ b/src/matcher/options.ts @@ -83,14 +83,10 @@ export const array = (template: TemplateValue, values?: Value[]) => { if (values === undefined) { return array.bind(null, template); } - //console.trace() - console.log(values) const m: Checker = types.function(template) ? template : match.bind(null, template); - return values.every((item) => { - return true; - }); + return values.every(m); // }; // tslint:disable-next-line:typedef |
