diff options
| author | Hafeez | 2018-04-14 19:47:38 +0100 |
|---|---|---|
| committer | Hafeez | 2018-04-14 19:47:38 +0100 |
| commit | 7be8d8b517c862dc1e49a7a964d0af39987e01e5 (patch) | |
| tree | 8e9946aa10fc8d1948c9f16f37da8622bbcb0adf /src/matcher/options.ts | |
| parent | think i fixed something (diff) | |
| parent | Merge branch 'trh/gets' of https://gitlab.cs.st-andrews.ac.uk/cs3099group-be-... (diff) | |
| download | medicine-7be8d8b517c862dc1e49a7a964d0af39987e01e5.tar.gz medicine-7be8d8b517c862dc1e49a7a964d0af39987e01e5.zip | |
Merge branch ‘trh/gets’ of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/project-code into trh/gets
Diffstat (limited to 'src/matcher/options.ts')
| -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 |
