-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathexceljs-dist.spec.js
26 lines (24 loc) · 917 Bytes
/
exceljs-dist.spec.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const fs = require('fs');
const exists = path => new Promise(resolve => fs.exists(path, resolve));
describe('ExcelJS', () => {
describe('dist folder', () => {
it('should include LICENSE', async () => {
expect(await exists('./dist/LICENSE')).to.be.true()
});
it('should include exceljs.js', async () => {
expect(await exists('./dist/exceljs.js')).to.be.true()
});
it('should include exceljs.min.js', async () => {
expect(await exists('./dist/exceljs.min.js')).to.be.true()
});
it('should include exceljs.bare.js', async () => {
expect(await exists('./dist/exceljs.bare.js')).to.be.true()
});
it('should include exceljs.bare.min.js', async () => {
expect(await exists('./dist/exceljs.bare.min.js')).to.be.true()
});
it('should include es5/index', async () => {
expect(await exists('./dist/es5/index.js')).to.be.true()
});
});
});