Import and convert battlesuit data

This commit is contained in:
Sakura Knoll
2023-07-09 07:31:14 +09:00 Unverified
parent d947b62514
commit 9ce20302a3
14 changed files with 741 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { doesDirExist } from './fsUtils'
import path from 'path'
describe('doesDirExist', () => {
it('returns true if dir exists', () => {
const existingDir = path.join(process.cwd(), 'src')
const fn = jest.fn(doesDirExist)
fn(existingDir)
expect(fn).toReturnWith(true)
})
it('returns false if dir does not exist', () => {
const existingDir = path.join(process.cwd(), 'never-exists')
const fn = jest.fn(doesDirExist)
fn(existingDir)
expect(fn).toReturnWith(false)
})
})