test less files too

This commit is contained in:
nklhrstv 2021-10-05 14:37:24 +03:00
parent 099c799d67
commit c3ce9e6541
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,5 @@
// Copyright (C) 2017-2020 Smart code 203358507
.video-container {
.video {
width: 100%;

View file

@ -12,4 +12,11 @@ describe('copyright', () => {
expect(content).toEqual(expect.stringMatching(COPYRIGHT_HEADER));
}
});
test('less', async () => {
for await (const { fullPath } of readdirp('src', { fileFilter: '*.less' })) {
const content = await fs.promises.readFile(fullPath, 'utf8');
expect(content).toEqual(expect.stringMatching(COPYRIGHT_HEADER));
}
});
});