Skip to content

Commit

Permalink
chore(falcon): fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed Mar 7, 2023
1 parent 99975e9 commit 4cf633d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/falcon/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ import { database } from '@mateonunez/asterism-huston'

const { mysqlOptions, postgresOptions } = database

t.before(async () => {
t.beforeEach(async () => {
await seeder(undefined, 'mysql', { ...mysqlOptions, outputDir: './lyra' })
})

t.afterEach(async () => {
await dropSeed(undefined, 'mysql', { ...mysqlOptions, outputDir: './lyra' })
})

t.test('no database selected should default to mysql', async ({ ok }) => {
const { db } = await falconMigrate(undefined, { ...mysqlOptions, outputDir: './lyra' })
ok(db.isMysql)
Expand All @@ -30,7 +34,3 @@ t.test('falcon search should return results', async ({ ok }) => {
const results = await falconSearch('John', { inputDir: './lyra' })
ok(results)
})

t.on('end', async () => {
await dropSeed(undefined, 'mysql', { ...mysqlOptions, outputDir: './lyra' })
})

0 comments on commit 4cf633d

Please sign in to comment.