mirror of
https://github.com/immich-app/immich.git
synced 2026-02-13 04:17:56 +03:00
refactor: sql-tools (#19717)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { transformFunctions } from 'src/sql-tools/transformers/function.transformer';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe(transformFunctions.name, () => {
|
||||
describe('FunctionDrop', () => {
|
||||
it('should work', () => {
|
||||
expect(
|
||||
transformFunctions({
|
||||
type: 'FunctionDrop',
|
||||
functionName: 'test_func',
|
||||
reason: 'unknown',
|
||||
}),
|
||||
).toEqual(`DROP FUNCTION test_func;`);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user