Archived
2

/authorized returns level, added device to spectrum measurement

This commit is contained in:
VLE2FE
2020-07-23 14:55:41 +02:00
parent 005e5d2a4d
commit 3b08fb63c7
13 changed files with 74 additions and 47 deletions

View File

@ -266,7 +266,7 @@ describe('/sample', () => {
httpStatus: 200
}).end((err, res) => {
if (err) return done(err);
should(res.body).have.lengthOf(2);
should(res.body.filter(e => e.spectrum.dpt)).have.lengthOf(2);
should(res.body[0].spectrum).have.property('dpt', [[3997.12558,98.00555],[3995.08519,98.03253],[3993.04480,98.02657]]);
should(res.body[1].spectrum).have.property('dpt', [[3996.12558,98.00555],[3995.08519,98.03253],[3993.04480,98.02657]]);
done();