sheetjs/packages/ssf/test/utilities.js

11 lines
412 B
JavaScript
Raw Permalink Normal View History

2017-03-21 07:45:12 +00:00
/* vim: set ts=2: */
/*jshint loopfunc:true, mocha:true, node:true */
var SSF = require('../');
var fs = require('fs'), assert = require('assert');
var is_date = JSON.parse(fs.readFileSync('./test/is_date.json','utf8'));
describe('utilities', function() {
it('correctly determines if formats are dates', function() {
2023-12-05 08:19:42 +00:00
is_date.forEach(function(d) { assert.equal(SSF.is_date(d[0]), d[1], d[0]); });
2017-03-21 07:45:12 +00:00
});
});