0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

refactor: avoid generate revision on unit test

This commit is contained in:
Juan Picado @jotadeveloper 2018-06-25 22:43:31 +02:00
parent 88996e92a5
commit 87c16547e8
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

@ -745,7 +745,10 @@ class LocalStorage implements IStorage {
json._rev = DEFAULT_REVISION;
}
// this is intended in debug mode we do not want modify the store revision
if (_.isNil(this.config._debug)) {
json._rev = generateRevision(json._rev);
}
return json;
}