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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user