Skip to content

Commit bab0382

Browse files
committed
fixed spelling
1 parent e0aeb04 commit bab0382

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/unit/connection/outbound-sending-tests.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var con = new Connection({
55
stream: stream
66
});
77

8-
assert.recieved = function(stream, buffer) {
8+
assert.received = function(stream, buffer) {
99
assert.length(stream.packets, 1);
1010
var packet = stream.packets.pop();
1111
assert.equalBuffers(packet, buffer);
@@ -16,7 +16,7 @@ test("sends startup message", function() {
1616
user: 'brian',
1717
database: 'bang'
1818
});
19-
assert.recieved(stream, new BufferList()
19+
assert.received(stream, new BufferList()
2020
.addInt16(3)
2121
.addInt16(0)
2222
.addCString('user')
@@ -28,13 +28,13 @@ test("sends startup message", function() {
2828

2929
test('sends password message', function() {
3030
con.password("!");
31-
assert.recieved(stream, new BufferList().addCString("!").join(true,'p'));
31+
assert.received(stream, new BufferList().addCString("!").join(true,'p'));
3232
});
3333

3434
test('sends query message', function() {
3535
var txt = 'select * from boom';
3636
con.query(txt);
37-
assert.recieved(stream, new BufferList().addCString(txt).join(true,'Q'));
37+
assert.received(stream, new BufferList().addCString(txt).join(true,'Q'));
3838
});
3939

4040
test('sends parse message', function() {
@@ -43,7 +43,7 @@ test('sends parse message', function() {
4343
.addCString("")
4444
.addCString("!")
4545
.addInt16(0).join(true, 'P');
46-
assert.recieved(stream, expected);
46+
assert.received(stream, expected);
4747
});
4848

4949
test('sends parse message with named query', function() {
@@ -56,7 +56,7 @@ test('sends parse message with named query', function() {
5656
.addCString("boom")
5757
.addCString("select * from boom")
5858
.addInt16(0).join(true,'P');
59-
assert.recieved(stream, expected);
59+
assert.received(stream, expected);
6060

6161
test('with multiple parameters', function() {
6262
con.parse({
@@ -72,7 +72,7 @@ test('sends parse message with named query', function() {
7272
.addInt32(2)
7373
.addInt32(3)
7474
.addInt32(4).join(true,'P');
75-
assert.recieved(stream, expected);
75+
assert.received(stream, expected);
7676
});
7777
});
7878

@@ -87,7 +87,7 @@ test('bind messages', function() {
8787
.addInt16(0)
8888
.addInt16(0)
8989
.join(true,"B");
90-
assert.recieved(stream, expectedBuffer);
90+
assert.received(stream, expectedBuffer);
9191
});
9292

9393
test('with named statement, portal, and values', function() {
@@ -110,7 +110,7 @@ test('bind messages', function() {
110110
.add(Buffer('zing'))
111111
.addInt16(0)
112112
.join(true, 'B');
113-
assert.recieved(stream, expectedBuffer);
113+
assert.received(stream, expectedBuffer);
114114
});
115115
});
116116

@@ -123,7 +123,7 @@ test("sends execute message", function() {
123123
.addCString('')
124124
.addInt32(0)
125125
.join(true,'E');
126-
assert.recieved(stream, expectedBuffer);
126+
assert.received(stream, expectedBuffer);
127127
});
128128

129129
test("for named portal with row limit", function() {
@@ -135,38 +135,38 @@ test("sends execute message", function() {
135135
.addCString("my favorite portal")
136136
.addInt32(100)
137137
.join(true, 'E');
138-
assert.recieved(stream, expectedBuffer);
138+
assert.received(stream, expectedBuffer);
139139
});
140140
});
141141

142142
test('sends flush command', function() {
143143
con.flush();
144144
var expected = new BufferList().join(true, 'H');
145-
assert.recieved(stream, expected);
145+
assert.received(stream, expected);
146146
});
147147

148148
test('sends sync command', function() {
149149
con.sync();
150150
var expected = new BufferList().join(true,'S');
151-
assert.recieved(stream, expected);
151+
assert.received(stream, expected);
152152
});
153153

154154
test('sends end command', function() {
155155
con.end();
156156
var expected = new Buffer([0x58, 0, 0, 0, 4]);
157-
assert.recieved(stream, expected);
157+
assert.received(stream, expected);
158158
});
159159

160160
test('sends describe command',function() {
161161
test('describe statement', function() {
162162
con.describe({type: 'S', name: 'bang'});
163163
var expected = new BufferList().addChar('S').addCString('bang').join(true, 'D')
164-
assert.recieved(stream, expected);
164+
assert.received(stream, expected);
165165
});
166166

167167
test("describe unnamed portal", function() {
168168
con.describe({type: 'P'});
169169
var expected = new BufferList().addChar('P').addCString("").join(true, "D");
170-
assert.recieved(stream, expected);
170+
assert.received(stream, expected);
171171
});
172172
});

0 commit comments

Comments
 (0)