Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
20 lines
379 B
JavaScript
Executable file
20 lines
379 B
JavaScript
Executable file
'use strict';
|
|
|
|
/* exported MockVoicemail */
|
|
|
|
var MockVoicemail = {
|
|
mResolvePromise: function(value) {
|
|
if (this.onFulfill) {
|
|
this.onFulfill(value);
|
|
}
|
|
},
|
|
check: function(number, cardIndex) {
|
|
var self = this;
|
|
return {
|
|
then: function(onFulfill, onReject) {
|
|
self.onFulfill = onFulfill;
|
|
self.onReject = onReject;
|
|
}
|
|
};
|
|
}
|
|
};
|