Skip to content

Commit

Permalink
test-app: fix version in imported data from api mock clients #TASK-4962
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Sep 25, 2023
1 parent 1c8755d commit da24832
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sites/test-app/clients/api-mock/DiseasePanel.js
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion src/sites/test-app/clients/api-mock/Family.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,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
2 changes: 1 addition & 1 deletion src/sites/test-app/clients/api-mock/Individual.js
Original file line number Diff line number Diff line change
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 da24832

Please sign in to comment.