mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 11:27:56 +03:00
17 lines
457 B
TypeScript
17 lines
457 B
TypeScript
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;`);
|
|
});
|
|
});
|
|
});
|