Module testing

Module testing 

Source
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§

StorageTestFixture
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