()
| 27 | columns = new Map<string, Array<string>>() |
| 28 | |
| 29 | snapshot() { |
| 30 | return { |
| 31 | tables: new Map(Array.from(this.tables, ([table, rows]) => [table, rows.map((row) => ({ ...row }))])), |
| 32 | columns: new Map(Array.from(this.columns, ([table, columns]) => [table, [...columns]])) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | restore(snapshot: ReturnType<FakeSqlStorage["snapshot"]>) { |
| 37 | this.tables = snapshot.tables |
no test coverage detected