Allow ol/typedefs.js to be missing a provide

This commit is contained in:
Tim Schaub
2016-08-06 15:00:43 -06:00
parent b47dc998a3
commit 4460147291

View File

@@ -50,6 +50,10 @@ describe('each file', () => {
it('has a path that maps to the provide', () => { it('has a path that maps to the provide', () => {
for (let file in provides) { for (let file in provides) {
const provide = provides[file][0]; const provide = provides[file][0];
if (!provide) {
assert.equal(file, path.join('ol', 'typedefs.js'), 'only ol/typedefs.js can be missing a provide');
continue;
}
let ext; let ext;
if (file.endsWith('index.js')) { if (file.endsWith('index.js')) {
ext = path.sep + 'index.js'; ext = path.sep + 'index.js';