Expand description
Storage adapter testing utilities.
Rewritten from:
automerge-repo/packages/automerge-repo/src/helpers/tests/storage-adapter-tests.ts.
Provides a test suite for any implementation of the Storage trait.
Based on the TypeScript runStorageAdapterTests from automerge-repo.
Traits§
- Storage
Test Fixture - Trait for storage test fixtures.
Functions§
- large_
payload - payload_
a - payload_
b - payload_
c - run_
storage_ adapter_ tests - Run all storage adapter acceptance tests.
- test_
load_ range_ should_ return_ empty_ if_ no_ data - test_
load_ should_ return_ none_ if_ no_ data - test_
save_ and_ load_ range_ should_ only_ load_ matching_ values - test_
save_ and_ load_ range_ should_ return_ all_ matching_ data - test_
save_ and_ load_ should_ return_ data_ that_ was_ saved - test_
save_ and_ load_ should_ work_ with_ composite_ keys - test_
save_ and_ load_ should_ work_ with_ large_ payload - test_
save_ and_ remove_ should_ be_ empty_ after_ removing - test_
save_ and_ save_ should_ overwrite