2025-05-06 00:39:04 +10:00
|
|
|
// Copyright 2025 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2025-09-16 17:39:03 -07:00
|
|
|
import { sql } from '../../sql/util.js';
|
|
|
|
import type { WritableDB } from '../../sql/Interface.js';
|
|
|
|
import { updateToVersion, createDB } from './helpers.js';
|
2025-05-06 00:39:04 +10:00
|
|
|
|
|
|
|
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
|
|
|
|
});
|