This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
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.
34 lines
1.1 KiB
34 lines
1.1 KiB
// if running on older node, ensure that es6-shim is loaded first |
|
if (/^v0.10/.test(process.version)) { require('es6-shim'); } |
|
var assert= require('../assert'); |
|
var timers = require('../timers'); |
|
|
|
describe('timers module', function() { |
|
it ('setImmediate()', function() { |
|
return timers.setImmediate().then(function(result) { |
|
assert.strictEqual(result, undefined, ''); |
|
}); |
|
}); |
|
it ('setImmediate(<arg>)', function() { |
|
var obj = {}; |
|
return timers.setImmediate(obj).then(function(result) { |
|
assert.strictEqual(result, obj, ''); |
|
}); |
|
}); |
|
it ('setTimeout()', function() { |
|
return timers.setTimeout().then(function(result) { |
|
assert.strictEqual(result, undefined, ''); |
|
}); |
|
}); |
|
it ('setTimeout(<num>)', function() { |
|
return timers.setTimeout(15).then(function(result) { |
|
assert.strictEqual(result, undefined, ''); |
|
}); |
|
}); |
|
it ('setTimeout(<num>, <arg>)', function() { |
|
var obj = {}; |
|
return timers.setTimeout(25, obj).then(function(result) { |
|
assert.strictEqual(result, obj, ''); |
|
}); |
|
}); |
|
});
|
|
|