ant-design/tests/dekko/dist.test.js
2019-12-06 21:37:26 +08:00

19 lines
459 B
JavaScript

const $ = require('dekko');
const chalk = require('chalk');
$('dist')
.isDirectory()
.hasFile('antd-with-locales.js')
.hasFile('antd-with-locales.min.js')
.hasFile('antd.css')
.hasFile('antd.min.css')
.hasFile('antd.js')
.hasFile('antd.min.js')
.hasFile('antd.less')
.hasFile('antd.dark.less')
.hasFile('antd.dark.css')
.hasFile('dark-theme.js');
// eslint-disable-next-line
console.log(chalk.green('✨ `dist` directory is valid.'));