UNPKG

335 BJavaScriptView Raw
1var convert = require('../lib')
2 , assert = require('assert')
3 , tests = {};
4
5tests['ft-cd to lx'] = function () {
6 assert.strictEqual( convert(1).from('ft-cd').to('lx') , 10.76391);
7};
8
9tests['lx to ft-cd'] = function () {
10 assert.strictEqual( convert(1).from('lx').to('ft-cd') , 0.09290304359661128);
11};
12
13module.exports = tests;