ant-design/tests/dekko/lib.test.js
偏右 0062867274 Feature 2.6 (#4429)
* new Layout Component (#4087)

* change Anchor type

* new Layout

* Component update && add snap

* Revert "new Layout Component" (#4131)

* add Layout (#4169)

* add Layout

* update

* fix snapshot

* Improve layout component

1. update demo code
2. drop `position` of Sider
3. improve demo style
2016-12-30 21:41:28 +08:00

29 lines
566 B
JavaScript

const $ = require('dekko');
$('lib')
.isDirectory()
.hasFile('index.js')
.hasFile('index.d.ts');
$('lib/*')
.filter((filename) => {
return !filename.endsWith('index.js') &&
!filename.endsWith('index.d.ts');
})
.isDirectory()
.filter((filename) => {
return !filename.endsWith('style') &&
!filename.endsWith('_util');
})
.hasFile('index.js')
.hasFile('index.d.ts')
.hasDirectory('style');
$('lib/*/style')
.hasFile('css.js')
.hasFile('index.js');
// eslint-disable-next-line
console.log('`lib` directory is valid.');