mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
amqplib: small cleanup of the test code
This commit is contained in:
@@ -24,7 +24,7 @@ amqp.connect("amqp://localhost")
|
||||
|
||||
// test promise api properties
|
||||
var amqpMessage: amqp.Message;
|
||||
amqpMessage.properties.contentType === "application/json";
|
||||
amqpMessage.properties.contentType = "application/json";
|
||||
var amqpAssertExchangeOptions: amqp.Options.AssertExchange;
|
||||
var anqpAssertExchangeReplies: amqp.Replies.AssertExchange;
|
||||
|
||||
@@ -62,6 +62,6 @@ amqpcb.connect("amqp://localhost", (err, connection) => {
|
||||
|
||||
// test callback api properties
|
||||
var amqpcbMessage: amqp.Message;
|
||||
amqpMessage.properties.contentType === "application/json";
|
||||
amqpcbMessage.properties.contentType = "application/json";
|
||||
var amqpcbAssertExchangeOptions: amqp.Options.AssertExchange;
|
||||
var anqpcbAssertExchangeReplies: amqp.Replies.AssertExchange;
|
||||
Reference in New Issue
Block a user