Skip to content

Commit 09d758b

Browse files
author
Hein
committed
Update test descriptions
1 parent 94a7a7d commit 09d758b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/common/tests/db/schema/Schema.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import { column, ColumnType } from '../../../src/db/schema/Column';
55
import { Column } from '../../../lib';
66

77
describe('Schema', () => {
8-
it('should fail if array is passed and not a table object', () => {
8+
it('should fail if an array of tables using the new syntax is passed to schema', () => {
99
const table1 = new Table({ name: column.text });
1010
const table2 = new Table({ age: { type: ColumnType.INTEGER } });
1111
expect(() => new Schema([table1, table2])).toThrow();
1212
});
1313

14-
it('should create a schema with an array of tables', () => {
14+
it('should create a schema with an array of tables using the old syntax', () => {
1515
const table1 = new Table({
1616
name: 'table1',
1717
columns: [new Column({ name: 'name', type: ColumnType.TEXT })]

0 commit comments

Comments
 (0)