@molgenis/vip-report-template 7.1.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molgenis/vip-report-template",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Report Template for Variant Call Format (VCF) Report Generator",
5
5
  "license": "LGPL-3.0",
6
6
  "devDependencies": {
@@ -197,7 +197,7 @@ function createQueryFilterInheritanceMatch(
197
197
  });
198
198
  queryParts.push(createQueryComposed(queryPartsUndefined, "or"));
199
199
  }
200
- return createQueryComposed(queryParts, "and");
200
+ return createQueryComposed(queryParts, "or");
201
201
  }
202
202
 
203
203
  function createQueryFilterDeNovo(filter: ConfigFilterDeNovo, filterValue: FilterValueDeNovo): Query {
@@ -234,6 +234,25 @@ describe("query composed filters", () => {
234
234
  operator: "or",
235
235
  });
236
236
  });
237
+
238
+ test("match and potential", () => {
239
+ expect(createQueryFilterComposed(config, ["true","potential"])).toStrictEqual(
240
+ {
241
+ args: [{
242
+ selector: ["s", 1, "VIM"],
243
+ operator: "==",
244
+ args: 1,
245
+ },
246
+ {
247
+ args: [
248
+ { selector: ["s", 1, "VIM"], operator: "==", args: null },
249
+ { selector: ["s", 1, "VIM"], operator: "==", args: undefined },
250
+ ],
251
+ operator: "or",
252
+ }],
253
+ operator: "or",
254
+ });
255
+ });
237
256
  });
238
257
 
239
258
  describe("deNovo", () => {