Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-vl committed Nov 14, 2024
1 parent ab10c8b commit 9f7284e
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions src/migration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9f7284e

Please sign in to comment.