mirror of
https://github.com/iptv-org/iptv
synced 2026-10-29 06:14:25 -04:00
Update update-database.test.js
This commit is contained in:
1 parent
d7fe08b153
commit
630f33d24b
1 file changed
+1
-4
@@ -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', () => {
|
||||||
|
|||||||
Reference in new issue
Block a user