/
githubmirror
/
dayjs
Обзор
Документация
Войти
/
githubmirror
/
dayjs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.11.0
test/plugin/declarations.test.js
13 строк
340 B
iamkun
test: add plugin declaration exist test
23 фев 2019, 18:47
23 фев 2019, 18:47
1b9287f
Код
Авторство
О чём код?
import fs from 'fs' import path from 'path' const pluginDir = '../../src/plugin' const pluginTypeDir = '../../types/plugin' it('Plugin declarations', () => { fs.readdirSync(path.join(__dirname, pluginDir)) .forEach((l) => { expect(fs.existsSync(path.join(__dirname, pluginTypeDir, `${l}.d.ts`))) .toBe(true) }) })