From bab0382ce76d1dbeb9e4197b40a82b8c09c7f802 Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Wed, 20 Apr 2011 22:31:04 -0500 Subject: [PATCH] fixed spelling --- .../unit/connection/outbound-sending-tests.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/unit/connection/outbound-sending-tests.js b/test/unit/connection/outbound-sending-tests.js index 99357c24..6e38ccb9 100644 --- a/test/unit/connection/outbound-sending-tests.js +++ b/test/unit/connection/outbound-sending-tests.js @@ -5,7 +5,7 @@ var con = new Connection({ stream: stream }); -assert.recieved = function(stream, buffer) { +assert.received = function(stream, buffer) { assert.length(stream.packets, 1); var packet = stream.packets.pop(); assert.equalBuffers(packet, buffer); @@ -16,7 +16,7 @@ test("sends startup message", function() { user: 'brian', database: 'bang' }); - assert.recieved(stream, new BufferList() + assert.received(stream, new BufferList() .addInt16(3) .addInt16(0) .addCString('user') @@ -28,13 +28,13 @@ test("sends startup message", function() { test('sends password message', function() { con.password("!"); - assert.recieved(stream, new BufferList().addCString("!").join(true,'p')); + assert.received(stream, new BufferList().addCString("!").join(true,'p')); }); test('sends query message', function() { var txt = 'select * from boom'; con.query(txt); - assert.recieved(stream, new BufferList().addCString(txt).join(true,'Q')); + assert.received(stream, new BufferList().addCString(txt).join(true,'Q')); }); test('sends parse message', function() { @@ -43,7 +43,7 @@ test('sends parse message', function() { .addCString("") .addCString("!") .addInt16(0).join(true, 'P'); - assert.recieved(stream, expected); + assert.received(stream, expected); }); test('sends parse message with named query', function() { @@ -56,7 +56,7 @@ test('sends parse message with named query', function() { .addCString("boom") .addCString("select * from boom") .addInt16(0).join(true,'P'); - assert.recieved(stream, expected); + assert.received(stream, expected); test('with multiple parameters', function() { con.parse({ @@ -72,7 +72,7 @@ test('sends parse message with named query', function() { .addInt32(2) .addInt32(3) .addInt32(4).join(true,'P'); - assert.recieved(stream, expected); + assert.received(stream, expected); }); }); @@ -87,7 +87,7 @@ test('bind messages', function() { .addInt16(0) .addInt16(0) .join(true,"B"); - assert.recieved(stream, expectedBuffer); + assert.received(stream, expectedBuffer); }); test('with named statement, portal, and values', function() { @@ -110,7 +110,7 @@ test('bind messages', function() { .add(Buffer('zing')) .addInt16(0) .join(true, 'B'); - assert.recieved(stream, expectedBuffer); + assert.received(stream, expectedBuffer); }); }); @@ -123,7 +123,7 @@ test("sends execute message", function() { .addCString('') .addInt32(0) .join(true,'E'); - assert.recieved(stream, expectedBuffer); + assert.received(stream, expectedBuffer); }); test("for named portal with row limit", function() { @@ -135,38 +135,38 @@ test("sends execute message", function() { .addCString("my favorite portal") .addInt32(100) .join(true, 'E'); - assert.recieved(stream, expectedBuffer); + assert.received(stream, expectedBuffer); }); }); test('sends flush command', function() { con.flush(); var expected = new BufferList().join(true, 'H'); - assert.recieved(stream, expected); + assert.received(stream, expected); }); test('sends sync command', function() { con.sync(); var expected = new BufferList().join(true,'S'); - assert.recieved(stream, expected); + assert.received(stream, expected); }); test('sends end command', function() { con.end(); var expected = new Buffer([0x58, 0, 0, 0, 4]); - assert.recieved(stream, expected); + assert.received(stream, expected); }); test('sends describe command',function() { test('describe statement', function() { con.describe({type: 'S', name: 'bang'}); var expected = new BufferList().addChar('S').addCString('bang').join(true, 'D') - assert.recieved(stream, expected); + assert.received(stream, expected); }); test("describe unnamed portal", function() { con.describe({type: 'P'}); var expected = new BufferList().addChar('P').addCString("").join(true, "D"); - assert.recieved(stream, expected); + assert.received(stream, expected); }); });