Skip to content

Commit

Permalink
Warn when temp files are found in the test data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Aug 18, 2017
1 parent 68a7fcb commit 52d4013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/fn/convert-app-forms.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const assert = require('chai').assert;
const fs = require('../../src/lib/sync-fs');
const path = require('path');
const warn = require('../../src/lib/log').warn;

const convertAppForms = require('../../src/fn/convert-app-forms');

Expand All @@ -27,7 +28,7 @@ describe('convert-app-forms', () => {

if(XML.test(file)) targetName += '.expected';
else if(!XLS.test(file) && !PROPERTIES_JSON.test(file))
throw new Error(`Unexpected file type ${file}`);
warn(`Ignoring unexpected file type: ${file}`);

fs.copy(file, `${appFormsDir}/${targetName}`);
});
Expand Down

0 comments on commit 52d4013

Please sign in to comment.