xsheetjs/tests/make_fixtures.js
SheetJS 69782ca211 version bump 0.9.5: IE8+ browser tests
- minor changes to work around IE incompatibilities
- updated shim and browser tests
2017-03-22 21:18:40 -04:00

11 lines
473 B
JavaScript

#!/usr/bin/env node
var fs = require('fs');
var paths = fs.readFileSync('tests/fixtures.lst','utf-8').split("\n");
var aux = [
'multiformat.lst',
'./misc/ssf.json',
'./test_files/biff5/number_format_greek.xls'
]
var fullpaths = paths.concat(aux);
fs.writeFileSync('tests/fixtures.js', fullpaths.map(function(x) { return [x, fs.existsSync(x) ? fs.readFileSync(x).toString('base64') : ""]}).map(function(w) { return "fs['" + w[0] + "'] = '" + w[1] + "';\n"; }).join(""));