17 lines
528 B
TypeScript
17 lines
528 B
TypeScript
import chai from 'chai'
|
|
|
|
import { ErrorUtils } from '@tornado/sdk-utils'
|
|
import { Cache } from '@tornado/sdk-data'
|
|
|
|
const expect = chai.expect
|
|
|
|
describe('data', () => {
|
|
if (!process.env.EXPORT_TEST_DIRNAME)
|
|
throw ErrorUtils.getError('data.test.ts: no cache test dirname provided')
|
|
|
|
it(`Cache.exportAsArchive: should be able to export ${process.env.EXPORT_TEST_DIRNAME}`, async () => {
|
|
const cache = new Cache.Base(process.env.EXPORT_TEST_DIRNAME!)
|
|
await cache.exportAsArchive(undefined, true)
|
|
}).timeout(0)
|
|
})
|