mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Extract the tests and refactor some of the methods.
Extract some of the ACI Tree functionalities, and decouple it from the main source. Also - create some abstractions from the repeated code around the enable/disable the schema children object create/edit/delete functionalities, and also created the dialog wrappers for backup and restore dialogs. Reviewed by: Khushboo and Ashesh Refactored by: Ashesh
This commit is contained in:
committed by
Ashesh Vashi
parent
920934759f
commit
7dd6372eeb
21
web/regression/javascript/fake_model.js
Normal file
21
web/regression/javascript/fake_model.js
Normal file
@@ -0,0 +1,21 @@
|
||||
export class FakeModel {
|
||||
constructor() {
|
||||
this.values = {};
|
||||
}
|
||||
|
||||
set(key, value) {
|
||||
this.values[key] = value;
|
||||
}
|
||||
|
||||
get(key) {
|
||||
return this.values[key];
|
||||
}
|
||||
|
||||
unset(key) {
|
||||
delete this.values[key];
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
return Object.assign({}, this.values);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user