���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /lib/node_modules/forever/node_modules/nconf/test/mocks/ |
/* * mock-store.js: Mock store for ensuring certain operations are actually called. * * (C) 2011, Nodejitsu Inc. * */ var util = require('util'), events = require('events'), nconf = require('../../lib/nconf'); var Mock = nconf.Mock = function () { events.EventEmitter.call(this); this.type = 'mock'; }; // Inherit from Memory store. util.inherits(Mock, events.EventEmitter); // // ### function save (value, callback) // #### @value {Object} _Ignored_ Left here for consistency // #### @callback {function} Continuation to respond to when complete. // Waits `1000ms` and then calls the callback and emits the `save` event. // Mock.prototype.save = function (value, callback) { if (!callback && typeof value === 'function') { callback = value; value = null; } var self = this; setTimeout(function () { self.emit('save'); callback(); }, 1000); };