forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
17
electron/node_modules/simple-update-notifier/src/cache.spec.ts
generated
vendored
Normal file
17
electron/node_modules/simple-update-notifier/src/cache.spec.ts
generated
vendored
Normal 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue