improved globals and added status and spectrum
This commit is contained in:
@ -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"}
|
||||
},
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user