Skip to content

Commit

Permalink
improve reproduction-template
Browse files Browse the repository at this point in the history
  • Loading branch information
koskimas committed Mar 15, 2019
1 parent 5530377 commit ec3c490
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions reproduction-template.js
Expand Up @@ -45,8 +45,6 @@ async function main() {
.eager('pets');

chai.expect(jennifer.pets[0].name).to.equal('Doggo');

await knex.destroy()
}

///////////////////////////////////////////////////////////////
Expand All @@ -56,7 +54,7 @@ async function main() {
const knex = Knex({
client: 'sqlite3',
useNullAsDefault: true,
debug: true,
debug: false,
connection: {
filename: ':memory:'
}
Expand Down Expand Up @@ -266,5 +264,11 @@ async function createSchema() {
}

main()
.then(() => console.log('success'))
.catch(console.error);
.then(() => {
console.log('success')
return knex.destroy()
})
.catch(err => {
console.error(err)
return knex.destroy()
});

0 comments on commit ec3c490

Please sign in to comment.