Skip to content
Snippets Groups Projects
Commit 7bb7a68e authored by Jure's avatar Jure
Browse files

test(db-manager): correct use of internal getUmzug interface

parent 9876f130
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ describe('create tables', () => {
it('runs migrations', async () => {
await createTables()
const umzug = await getUmzug([])
const { umzug } = await getUmzug([])
const executedMigrations = await umzug.executed()
expect(executedMigrations.map(migration => migration.file)).toEqual([
'0001-component.js',
......@@ -29,7 +29,7 @@ describe('create tables', () => {
})
it('does run them again', async () => {
const umzug = await getUmzug([])
const { umzug } = await getUmzug([])
const pendingMigrations = await umzug.pending()
expect(pendingMigrations).toEqual([])
})
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment