mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Introduce infrastructure for Notification Profiles
This commit is contained in:
25
ts/test-node/sql/migration_1350_test.ts
Normal file
25
ts/test-node/sql/migration_1350_test.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { sql } from '../../sql/util';
|
||||
import type { WritableDB } from '../../sql/Interface';
|
||||
import { updateToVersion, createDB } from './helpers';
|
||||
|
||||
describe('SQL/updateToSchemaVersion1350', () => {
|
||||
let db: WritableDB;
|
||||
beforeEach(() => {
|
||||
db = createDB();
|
||||
updateToVersion(db, 1350);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
db.close();
|
||||
});
|
||||
|
||||
it('creates new notificationProfiles table', () => {
|
||||
const [query] = sql`SELECT * FROM notificationProfiles`;
|
||||
db.prepare(query).run();
|
||||
});
|
||||
|
||||
// See test-electron/sql/notificationProfiles_test.ts
|
||||
});
|
||||
Reference in New Issue
Block a user