YUKI Hiroshi
null+****@clear*****
Fri Oct 11 17:23:07 JST 2013
YUKI Hiroshi 2013-10-11 17:23:07 +0900 (Fri, 11 Oct 2013) New Revision: dc23a87f9b72e393479a3bde14a148f90cbee32a https://github.com/droonga/express-droonga/commit/dc23a87f9b72e393479a3bde14a148f90cbee32a Message: Add assertion for Connection#emitMessage with dataset option Modified files: test/droonga-protocol/connection.test.js Modified: test/droonga-protocol/connection.test.js (+10 -1) =================================================================== --- test/droonga-protocol/connection.test.js 2013-10-11 17:21:01 +0900 (2409580) +++ test/droonga-protocol/connection.test.js 2013-10-11 17:23:07 +0900 (1f94175) @@ -124,13 +124,22 @@ suite('Connection', function() { assert.envelopeEqual(numericMessage, utils.createExpectedEnvelope('numeric', 1234)); + var messageForAnotherDataset = connection.emitMessage('message', + 'another', + { dataset: 'another' }); + assert.envelopeEqual(messageForAnotherDataset, + utils.createExpectedEnvelope('message', + 'another', + { dataset: 'another' })); + Deferred .wait(0.01) .next(function() { assert.deepEqual(getBackendReceivedMessages(), [objectMessage, stringMessage, - numericMessage]); + numericMessage, + messageForAnotherDataset]); done(); }) .error(function(error) { -------------- next part -------------- HTML����������������������������... 下載