Skip to content

Commit

Permalink
fix: now we need stubSimpleCall for longrunning (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored May 6, 2020
1 parent 989ccd7 commit 449fca4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function generateSampleMessage<T extends object>(instance: T) {
.toObject(instance as protobuf.Message<T>, {defaults: true});
return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T;
}
{%- if (service.simpleMethods.length + service.paging.length > 0) %}
{%- if (service.simpleMethods.length + service.paging.length + service.longRunning.length > 0) %}

function stubSimpleCall<ResponseType>(response?: ResponseType, error?: Error) {
return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]);
Expand Down

0 comments on commit 449fca4

Please sign in to comment.