Skip to content

Commit d140840

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 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 schem', () => {
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 })]
@@ -36,7 +36,7 @@ describe('Schema', () => {
3636
}),
3737
posts: new Table({
3838
title: column.text,
39-
content: column.text,
39+
content: column.text
4040
})
4141
};
4242
const schema = new Schema(schemaDefinition);
@@ -63,7 +63,7 @@ describe('Schema', () => {
6363

6464
const invalidSchema = new Schema({
6565
invalidTable: new Table({
66-
'invalid name': column.text,
66+
'invalid name': column.text
6767
})
6868
});
6969

@@ -78,7 +78,7 @@ describe('Schema', () => {
7878
}),
7979
posts: new Table({
8080
title: column.text,
81-
content: column.text,
81+
content: column.text
8282
})
8383
});
8484

0 commit comments

Comments
 (0)