Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
307 B
16 lines
307 B
7 years ago
|
var tape = require('tape')
|
||
|
var safeRegex = require('safe-regex')
|
||
|
|
||
|
var formats = require('../formats')
|
||
|
|
||
|
tape('safe-regex', function (t) {
|
||
|
var key
|
||
|
for (key in formats) {
|
||
|
if (formats[key] instanceof RegExp) {
|
||
|
t.ok(safeRegex(formats[key]), key + ' should be a safe regex')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
t.end()
|
||
|
})
|