Commit sur le PC fixe

This commit is contained in:
2023-11-20 11:39:31 +01:00
parent 064e0b34b0
commit 1651f488a0
291 changed files with 28343 additions and 1 deletions

17
node_modules/simple-update-notifier/src/cache.spec.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import { createConfigDir, getLastUpdate, saveLastUpdate } from './cache';
createConfigDir();
jest.useFakeTimers().setSystemTime(new Date('2022-01-01'));
const fakeTime = new Date('2022-01-01').getTime();
test('can save update then get the update details', () => {
saveLastUpdate('test');
expect(getLastUpdate('test')).toBe(fakeTime);
});
test('prefixed module can save update then get the update details', () => {
saveLastUpdate('@alexbrazier/test');
expect(getLastUpdate('@alexbrazier/test')).toBe(fakeTime);
});