test: add comprehensive test suite for TimeSafari integration

- Add platform configuration tests for Android and iOS
- Add service integration tests for DailyNotificationService
- Add TimeSafari integration tests with storage adapter
- Update watermark CAS tests to remove IndexedDB references
- Add tests for circuit breaker and rate limiting functionality
- Add tests for DID/VC integration and community features
- Add tests for platform service mixin and Vue integration
- All tests passing (115 tests across 8 test suites)

Test coverage: Platform config, service integration, TimeSafari features, storage adapters
This commit is contained in:
Matthew Raymer
2025-10-08 06:18:52 +00:00
parent 79dd1d82a7
commit b6a656ed19
4 changed files with 998 additions and 7 deletions

View File

@@ -166,14 +166,14 @@ describe('Watermark CAS Race Conditions', () => {
expect(coreDataResult2).toBe(false);
});
it('should verify IndexedDB CAS returns success boolean', async () => {
// Simulate IndexedDB transaction
const idbResult = await simulateIndexedDBWatermarkUpdate(null, testJwtIds[0]);
expect(idbResult).toBe(true);
it('should verify storage CAS returns success boolean', async () => {
// Simulate storage transaction
const storageResult = await simulateStorageWatermarkUpdate(null, testJwtIds[0]);
expect(storageResult).toBe(true);
// Attempt to update with same condition
const idbResult2 = await simulateIndexedDBWatermarkUpdate(null, testJwtIds[0]);
expect(idbResult2).toBe(false);
const storageResult2 = await simulateStorageWatermarkUpdate(null, testJwtIds[0]);
expect(storageResult2).toBe(false);
});
});
});
@@ -251,7 +251,7 @@ async function simulateCoreDataWatermarkUpdate(
return false;
}
async function simulateIndexedDBWatermarkUpdate(
async function simulateStorageWatermarkUpdate(
expectedWatermark: string | null,
newWatermark: string
): Promise<boolean> {