mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 10:19:08 +00:00
26 lines
661 B
TypeScript
26 lines
661 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { sql } from '../../sql/util.std.js';
|
|
import type { WritableDB } from '../../sql/Interface.std.js';
|
|
import { updateToVersion, createDB } from './helpers.node.js';
|
|
|
|
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
|
|
});
|