@@ -5,13 +5,13 @@ import { column, ColumnType } from '../../../src/db/schema/Column';
55import { Column } from '../../../lib' ;
66
77describe ( '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