/
githubmirror
/
ydb-embedded-ui
Обзор
Документация
Войти
/
githubmirror
/
ydb-embedded-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/containers/Tenant/TableFormDialog/__test__/SplitPointDialog.test.ts
34 строки
997 B
Максим
feat: add topic and table forms (#3909)
28 июл 2026, 12:49
Не верифицирован
28 июл 2026, 12:49
7477f07
Код
Авторство
О чём код?
import {buildSplitPointEntries} from '../sections/SplitPointDialog'; import type {ColumnField} from '../types'; describe('SplitPointDialog', () => { test('preserves saved isDefined flag for autoincrement split points', () => { const pkColumns: ColumnField[] = [ { _id: 'column-id', name: 'id', type: 'Int64', key: true, notNull: true, autoincrement: true, withDefaultValue: false, }, ]; const [entry] = buildSplitPointEntries(pkColumns, [ { id: 'split-point-id', name: 'id', type: 'Int64', key: true, notNull: true, autoincrement: true, isDefined: true, value: '42', }, ]); expect(entry.isDefined).toBe(true); expect(entry.value).toBe('42'); }); });