Skip to content

Commit

Permalink
Merge pull request #819 from opencb/TASK-5058
Browse files Browse the repository at this point in the history
TASK-5058 - IVA tests are failing in Sample, Panels, Individual, and Family Browsers
  • Loading branch information
jmjuanes authored Sep 26, 2023
2 parents 6f3a482 + d60a338 commit 3bcfe77
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/sites/test-app/clients/api-mock/DiseasePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import UtilsNew from "../../../../core/utils-new";
export default class DiseasePanel {

constructor(config) {

this._config = config;
}

/** Update the set of permissions granted for the member
Expand Down Expand Up @@ -175,7 +175,7 @@ export default class DiseasePanel {
info(panels, params) {
// Mocked response for Sample update test
if (panels === "Early_onset_dystonia-PanelAppId-192") {
return UtilsNew.importJSONFile(`./test-data/2.11/disease-panels-platinum.json`)
return UtilsNew.importJSONFile(`./test-data/${this._config.testDataVersion}/disease-panels-platinum.json`)
.then(data => ({
responses: [{results: [data[0]]}]
}));
Expand Down
3 changes: 2 additions & 1 deletion src/sites/test-app/clients/api-mock/Family.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import UtilsNew from "../../../../core/utils-new";
export default class Family {

constructor(config) {
this._config = config;
}

/** Update the set of permissions granted for the member
Expand Down Expand Up @@ -203,7 +204,7 @@ export default class Family {
info(families, params) {
// Mocked response for Sample update test
if (families === "899077") {
return UtilsNew.importJSONFile(`./test-data/2.11/families-platinum.json`)
return UtilsNew.importJSONFile(`./test-data/${this._config.testDataVersion}/families-platinum.json`)
.then(data => ({
responses: [{results: [data[0]]}]
}));
Expand Down
4 changes: 2 additions & 2 deletions src/sites/test-app/clients/api-mock/Individual.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import UtilsNew from "../../../../core/utils-new";
export default class Individual {

constructor(config) {

this._config = config;
}

/** Update the set of permissions granted for the member
Expand Down Expand Up @@ -229,7 +229,7 @@ export default class Individual {
info(individuals, params) {
// Mocked response for Individual update test
if (individuals === "NA12889") {
return UtilsNew.importJSONFile(`./test-data/2.11/individuals-platinum.json`)
return UtilsNew.importJSONFile(`./test-data/${this._config.testDataVersion}/individuals-platinum.json`)
.then(data => ({
responses: [{results: [data[0]]}]
}));
Expand Down
2 changes: 1 addition & 1 deletion src/sites/test-app/clients/api-mock/Sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default class Sample {
}
// Mocked response for Sample update test
if (samples === "NA12877") {
return UtilsNew.importJSONFile(`./test-data/2.11/samples-platinum.json`)
return UtilsNew.importJSONFile(`./test-data/${this._config.testDataVersion}/samples-platinum.json`)
.then(data => ({
responses: [{results: [data[0]]}]
}));
Expand Down

0 comments on commit 3bcfe77

Please sign in to comment.