add time in block to restore point (#1192)

This commit is contained in:
Alex Christoffer Rasmussen
2024-08-27 13:08:16 +02:00
committed by GitHub
parent 25aefe322b
commit db5fbd8019
4 changed files with 25 additions and 4 deletions
@@ -14,6 +14,7 @@ describe('isRestorePoint()', () => {
addedTime: 2,
pausedAt: 3,
firstStart: 1,
blockStartAt: 10,
};
expect(isRestorePoint(restorePoint)).toBe(true);
@@ -24,6 +25,7 @@ describe('isRestorePoint()', () => {
addedTime: 0,
pausedAt: null,
firstStart: 1,
blockStartAt: null,
};
expect(isRestorePoint(restorePoint)).toBe(true);
});
@@ -36,6 +38,7 @@ describe('isRestorePoint()', () => {
startedAt: null,
addedTime: 0,
pausedAt: null,
blockStartAt: 10,
};
expect(isRestorePoint(restorePoint)).toBe(false);
});
@@ -45,6 +48,7 @@ describe('isRestorePoint()', () => {
startedAt: null,
addedTime: 0,
pausedAt: null,
blockStartAt: 10,
};
expect(isRestorePoint(restorePoint)).toBe(false);
});
@@ -55,6 +59,7 @@ describe('isRestorePoint()', () => {
startedAt: 'testing',
addedTime: 0,
pausedAt: null,
blockStartAt: 10,
};
expect(isRestorePoint(restorePoint)).toBe(false);
});
@@ -71,6 +76,7 @@ describe('RestoreService()', () => {
addedTime: 5678,
pausedAt: 9087,
firstStart: 1234,
blockStartAt: 1652,
};
const restoreService = new RestoreService('/path/to/restore/file');
@@ -88,6 +94,7 @@ describe('RestoreService()', () => {
addedTime: 0,
pausedAt: null,
firstStart: 1234,
blockStartAt: null,
};
const restoreService = new RestoreService('/path/to/restore/file');
@@ -105,6 +112,7 @@ describe('RestoreService()', () => {
addedTime: 1234,
pausedAt: 1234,
firstStart: 1234,
blockStartAt: 10,
};
const restoreService = new RestoreService('/path/to/restore/file');
@@ -124,6 +132,7 @@ describe('RestoreService()', () => {
addedTime: 1234,
pausedAt: 1234,
firstStart: 1234,
blockStartAt: null,
};
const restoreService = new RestoreService('/path/to/restore/file');