mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
style: plain punctuation in the new comments and test names
This commit is contained in:
@@ -358,7 +358,7 @@ export const mutationQueue = {
|
||||
blockedTrips.add(mutation.tripId)
|
||||
}
|
||||
} else {
|
||||
// No answer at all (network) or a retryable status — reset to
|
||||
// No answer at all (network) or a retryable status: reset to
|
||||
// pending and stop the flush; the next trigger retries.
|
||||
await offlineDb.mutationQueue.update(mutation.id, {
|
||||
status: 'pending',
|
||||
|
||||
@@ -504,7 +504,7 @@ describe('mutationQueue.flush — failure handling (B3)', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('mutationQueue.flush — a write the server keeps failing on', () => {
|
||||
describe('mutationQueue.flush: a write the server keeps failing on', () => {
|
||||
it('holds back only its own trip, with a growing gap, while other trips sync', async () => {
|
||||
const stuck = generateUUID();
|
||||
const sameTrip = generateUUID();
|
||||
@@ -563,7 +563,7 @@ describe('mutationQueue.flush — a write the server keeps failing on', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('mutationQueue — parked changes', () => {
|
||||
describe('mutationQueue: parked changes', () => {
|
||||
it('retryFailed puts them back in line from a fresh start and sends them', async () => {
|
||||
const id = generateUUID();
|
||||
await mutationQueue.enqueue(makeMutation({ id }));
|
||||
|
||||
@@ -438,7 +438,7 @@ describe('tripSyncManager.syncAll — logout while syncing', () => {
|
||||
|
||||
vi.mock('../../../src/repo/roadtripPreferencesRepo', () => ({ roadtripPreferencesRepo: { read: vi.fn(async () => ({})) } }))
|
||||
|
||||
describe('tripSyncManager.syncAll — deletions made elsewhere', () => {
|
||||
describe('tripSyncManager.syncAll: deletions made elsewhere', () => {
|
||||
it('drops cached rows the server no longer has, and keeps the ones created offline', async () => {
|
||||
const tripId = 400;
|
||||
const bundle = makeBundle(tripId);
|
||||
|
||||
Reference in New Issue
Block a user