diff --git a/src/migration.test.ts b/src/migration.test.ts index e0d950b..b4bd530 100644 --- a/src/migration.test.ts +++ b/src/migration.test.ts @@ -225,33 +225,34 @@ describe('migration', () => { }); }); - it('Should normalize showHeader', () => { - expect( - getMigratedOptions({ - options: { + /** + * Normalize Datasource Option + */ + describe('1.7.0', () => { + it('Should normalize showHeader', () => { + expect( + getMigratedOptions({ + options: { + tables: [ + { + name: '', + items: [], + }, + ], + }, + } as any) + ).toEqual( + expect.objectContaining({ tables: [ - { - name: '', + expect.objectContaining({ + showHeader: true, items: [], - }, + }), ], - }, - } as any) - ).toEqual( - expect.objectContaining({ - tables: [ - expect.objectContaining({ - showHeader: true, - items: [], - }), - ], - }) - ); + }) + ); + }); - /** - * Normalize Datasource Option - */ - describe('1.7.0', () => { it('Should normalize datasource option from name to id ', async () => { expect( await getMigratedOptions({