Update update-database.test.js
This commit is contained in:
parent
6f6b1896d8
commit
e93d677927
@ -3,12 +3,9 @@ const path = require('path')
|
|||||||
const { execSync } = require('child_process')
|
const { execSync } = require('child_process')
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fs.copyFileSync('tests/__data__/input/test.db', 'tests/__data__/temp/test.db')
|
|
||||||
})
|
|
||||||
|
|
||||||
afterEach(() => {
|
|
||||||
fs.rmdirSync('tests/__data__/temp', { recursive: true })
|
fs.rmdirSync('tests/__data__/temp', { recursive: true })
|
||||||
fs.mkdirSync('tests/__data__/temp')
|
fs.mkdirSync('tests/__data__/temp')
|
||||||
|
fs.copyFileSync('tests/__data__/input/test.db', 'tests/__data__/temp/test.db')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can update database', () => {
|
it('can update database', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user