Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
test now ignores missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
SheetJSDev committed May 16, 2014
1 parent 1537449 commit c6e8162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var files = (fs.existsSync('tests.lst') ? fs.readFileSync('tests.lst', 'utf-8').
var dir = "./test_files/";

files.forEach(function(x) {
describe(x.replace(/\.pending/,""), function() {
if(fs.existsSync(dir + x.replace(/\.(pending|nowrite)/, ""))) describe(x.replace(/\.pending/,""), function() {
var wb, wbxlsx, wbxlsm, wbxlsb;
before(function() { if(x.substr(-8) !== ".pending") wb = J.readFile(dir + x, opts); });
it('should parse', x.substr(-8) == ".pending" ? null : function() {});
Expand Down

0 comments on commit c6e8162

Please sign in to comment.