Add v9.1.1: Device registry and remote blocking system
- Implement DeviceRegistry for remote device management - Add dashboard for device tracking and blocking - Remote device blocking capability with admin control - Support for device aliasing and notes - Enhanced device management interface - Dashboard with real-time device status - Configurable registry URL in build config 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
17
dashboard/node_modules/simple-update-notifier/src/cache.spec.ts
generated
vendored
Normal file
17
dashboard/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);
|
||||
});
|
||||
Reference in New Issue
Block a user