Skip to content

Commit

Permalink
adding a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhaviv committed Mar 11, 2025
1 parent c39b76d commit 72e4343
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/sandbox-sanity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ describe('sandbox', function () {
},
response: {
type: 'grpc-response'
},
message: {
type: 'grpc-message'
}
}
};
Expand All @@ -325,6 +328,12 @@ describe('sandbox', function () {
'expecting a gRPC response but got #{this}',
'not expecting a gRPC response object');
});
Assertion.addProperty('grpcMessage', function () {
this.assert(this._obj.type === 'grpc-message',
'expecting a gRPC message but got #{this}',
'not expecting a gRPC message object');
});
}
module.exports = { initializeExecution, chaiPlugin };
Expand All @@ -348,6 +357,7 @@ describe('sandbox', function () {
pm.test('Should be gRPC request and response', () => {
pm.request.to.be.grpcRequest;
pm.response.to.be.grpcResponse;
pm.message.to.be.grpcMessage;
});
`, done);
});
Expand Down

0 comments on commit 72e4343

Please sign in to comment.