ant-design/tests/dekko/dist.test.js

21 lines
533 B
JavaScript
Raw Normal View History

const $ = require('dekko');
2018-12-23 17:45:31 +08:00
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')
2019-12-03 22:07:17 +08:00
.hasFile('antd.less')
2019-12-06 21:37:26 +08:00
.hasFile('antd.dark.less')
.hasFile('antd.dark.css')
.hasFile('antd.compact.less')
.hasFile('antd.compact.css')
2019-12-06 21:37:26 +08:00
.hasFile('dark-theme.js');
// eslint-disable-next-line no-console
2018-12-23 17:45:31 +08:00
console.log(chalk.green('✨ `dist` directory is valid.'));