Mock database hotfix
All checks were successful
Setup testing environment and test the code / build (push) Successful in 1m6s
All checks were successful
Setup testing environment and test the code / build (push) Successful in 1m6s
This commit is contained in:
@@ -4,6 +4,9 @@ export class DatabaseMock implements DatabaseAPI {
|
||||
database: { [collection: string]: { [key: string]: string } } = {};
|
||||
|
||||
set(collection: string, key: string, value: any) {
|
||||
if (!this.database[collection]) {
|
||||
this.database[collection] = {};
|
||||
}
|
||||
this.database[collection][key] = JSON.stringify(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user