chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { describe, test } from 'vitest';
|
||||
import { Column, is } from '~/index.ts';
|
||||
import { PgArray, PgColumn, PgSerial, pgTable, serial } from '~/pg-core/index.ts';
|
||||
|
||||
const pgExampleTable = pgTable('test', {
|
||||
a: serial('a').array(),
|
||||
});
|
||||
|
||||
describe.concurrent('is', () => {
|
||||
test('Column', ({ expect }) => {
|
||||
expect(is(pgExampleTable.a, Column)).toBe(true);
|
||||
expect(is(pgExampleTable.a, PgColumn)).toBe(true);
|
||||
expect(is(pgExampleTable.a, PgArray)).toBe(true);
|
||||
expect(is(pgExampleTable.a, PgSerial)).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user