Archived
2

improved globals and added status and spectrum

This commit is contained in:
VLE2FE
2020-08-11 16:06:51 +02:00
parent 2c57d2045c
commit f94653f389
19 changed files with 101 additions and 88 deletions

View File

@ -728,7 +728,7 @@
{
"_id" : {"$oid": "120000010000000000000000"},
"action" : "PUT /sample/400000000000000000000001",
"collectionName" : "samples",
"collection_name" : "samples",
"conditions" : {
"_id" : {"$oid": "400000000000000000000001"}
},
@ -742,7 +742,7 @@
{
"_id" : {"$oid": "120000020000000000000000"},
"action" : "PUT /sample/400000000000000000000001",
"collectionName" : "samples",
"collection_name" : "samples",
"conditions" : {
"_id" : {"$oid": "400000000000000000000001"}
},
@ -756,7 +756,7 @@
{
"_id" : {"$oid": "120000030000000000000000"},
"action" : "PUT /sample/400000000000000000000001",
"collectionName" : "samples",
"collection_name" : "samples",
"conditions" : {
"_id" : {"$oid": "400000000000000000000001"}
},
@ -770,7 +770,7 @@
{
"_id" : {"$oid": "120000040000000000000000"},
"action" : "PUT /sample/400000000000000000000001",
"collectionName" : "samples",
"collection_name" : "samples",
"conditions" : {
"_id" : {"$oid": "400000000000000000000001"}
},

View File

@ -104,9 +104,9 @@ export default class TestHelper {
ChangelogModel.findOne({}).sort({_id: -1}).skip(options.log.skip? options.log.skip : 0)
.lean().exec((err, data) => { // latest entry
if (err) return done(err);
should(data).have.only.keys('_id', 'action', 'collectionName', 'conditions', 'data', 'user_id', '__v');
should(data).have.only.keys('_id', 'action', 'collection_name', 'conditions', 'data', 'user_id', '__v');
should(data).have.property('action', options.method.toUpperCase() + ' ' + options.url);
should(data).have.property('collectionName', options.log.collection);
should(data).have.property('collection_name', options.log.collection);
if (options.log.hasOwnProperty('data')) {
should(data).have.property('data', options.log.data);
}