1 var assert
= require('assert');
3 var simmp_module
= require('../simmp.js');
5 // This is an example test on SimMp. It is not a very good test, but shows
6 // how to write a basic test in mocha
7 describe('SimMp', function() {
8 describe('#createSimMonitorFunc()', function () {
9 it('should return tx_rc_rate', function () {
16 var simmp
= new simmp_module
.SimMp({
17 "mp-mapper": { "tx-rate-pp1": "tx_rc_rate" }
19 assert(simmp
!= null, 'Could not instantiate simmp');
20 var func
= simmp
.createSimMonitorFunc(mp
);
22 assert(value
>= mp
.min_value
, 'value less than min value);
23 assert(value <= mp.max_value, 'value greater than max value
');