Refactor App.tsx, brush-command-helpers.ts, editor-store.test.ts, and local-draft-storage.test.ts
This commit is contained in:
@@ -22,15 +22,15 @@ class MemoryStorage implements KeyValueStorage {
|
||||
}
|
||||
|
||||
class ThrowingStorage implements KeyValueStorage {
|
||||
getItem(_key: string): string | null {
|
||||
getItem(): string | null {
|
||||
throw new Error("blocked read");
|
||||
}
|
||||
|
||||
setItem(_key: string, _value: string): void {
|
||||
setItem(): void {
|
||||
throw new Error("blocked write");
|
||||
}
|
||||
|
||||
removeItem(_key: string): void {}
|
||||
removeItem(): void {}
|
||||
}
|
||||
|
||||
describe("EditorStore", () => {
|
||||
|
||||
Reference in New Issue
Block a user