Skip to content

Commit 61a1b89

Browse files
Undo unintended changes.
1 parent f7ba9a8 commit 61a1b89

12 files changed

+53
-53
lines changed

test/integration/bulk-load-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ describe('BulkLoad', function() {
15041504
connection.execSqlBatch(request);
15051505
});
15061506

1507-
it('should handle validation errors during streaming bulk loads', (done) => {
1507+
it('should handle validation errors during streaming bulk loads', function(done) {
15081508
const bulkLoad = connection.newBulkLoad('#stream_test', completeBulkLoad);
15091509
bulkLoad.addColumn('value', TYPES.Date, { nullable: false });
15101510

@@ -1522,7 +1522,7 @@ describe('BulkLoad', function() {
15221522
}
15231523
});
15241524

1525-
it('should allow reusing the connection after validation errors during streaming bulk loads', (done) => {
1525+
it('should allow reusing the connection after validation errors during streaming bulk loads', function(done) {
15261526
const bulkLoad = connection.newBulkLoad('#stream_test', completeBulkLoad);
15271527
bulkLoad.addColumn('value', TYPES.Date, { nullable: false });
15281528

@@ -1554,7 +1554,7 @@ describe('BulkLoad', function() {
15541554
});
15551555
});
15561556

1557-
it('should not throw in _transform function', (done) => {
1557+
it('should not throw in _transform function', function(done) {
15581558
const bulkLoad = connection.newBulkLoad(
15591559
'#tmpTestTable',
15601560
(err, rowCount) => {

test/integration/connection-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ update #tab1 set name = 'a3' where name like 'a%'\
14281428
}
14291429
});
14301430

1431-
it('should request timeout', (done) => {
1431+
it('should request timeout', function(done) {
14321432
const request = new Request(
14331433
"select 1 as C1;waitfor delay '00:00:05';select 2 as C2",
14341434
function(err, rowCount, rows) {

test/unit/instance-lookup-test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,30 +314,30 @@ describe('InstanceLookup', function() {
314314
});
315315

316316
describe('parseBrowserResponse', function() {
317-
it('should find port when one instance matches', () => {
317+
it('should find port when one instance matches', function() {
318318
const response =
319319
'ServerName;WINDOWS2;InstanceName;SQLEXPRESS;IsClustered;No;Version;10.50.2500.0;tcp;1433;;';
320320

321321
assert.strictEqual(parseBrowserResponse(response, 'sqlexpress'), 1433);
322322
});
323323

324-
it('should find port in first instance when two instances exist', () => {
324+
it('should find port in first instance when two instances exist', function() {
325325
const response =
326326
'ServerName;WINDOWS2;InstanceName;SQLEXPRESS;IsClustered;No;Version;10.50.2500.0;tcp;1433;;' +
327327
'ServerName;WINDOWS2;InstanceName;XXXXXXXXXX;IsClustered;No;Version;10.50.2500.0;tcp;0;;';
328328

329329
assert.strictEqual(parseBrowserResponse(response, 'sqlexpress'), 1433);
330330
});
331331

332-
it('should find port in second instance when two instances exist', () => {
332+
it('should find port in second instance when two instances exist', function() {
333333
const response =
334334
'ServerName;WINDOWS2;InstanceName;XXXXXXXXXX;IsClustered;No;Version;10.50.2500.0;tcp;0;;' +
335335
'ServerName;WINDOWS2;InstanceName;SQLEXPRESS;IsClustered;No;Version;10.50.2500.0;tcp;1433;;';
336336

337337
assert.strictEqual(parseBrowserResponse(response, 'sqlexpress'), 1433);
338338
});
339339

340-
it('should return undefined when no instance matches', () => {
340+
it('should return undefined when no instance matches', function() {
341341
const response =
342342
'ServerName;WINDOWS2;InstanceName;XXXXXXXXXX;IsClustered;No;Version;10.50.2500.0;tcp;0;;' +
343343
'ServerName;WINDOWS2;InstanceName;YYYYYYYYYY;IsClustered;No;Version;10.50.2500.0;tcp;0;;';

test/unit/tedious-test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ import { assert } from 'chai';
33

44
describe('Tedious', function() {
55

6-
it('should export TYPES', () => {
6+
it('should export TYPES', function() {
77
assert.ok(TYPES);
88
assert.ok(TYPES.VarChar);
99
});
1010

11-
it('should export ISOLATION_LEVEL', () => {
11+
it('should export ISOLATION_LEVEL', function() {
1212
assert.ok(ISOLATION_LEVEL);
1313
assert.ok(ISOLATION_LEVEL.READ_UNCOMMITTED);
1414
});
1515

16-
it('should export Connection', () => {
16+
it('should export Connection', function() {
1717
assert.ok(Connection);
1818
});
1919

20-
it('should not modify the passed config object', () => {
20+
it('should not modify the passed config object', function() {
2121
const config = {
2222
server: 'localhost',
2323
userName: 'sa',

test/unit/token/colmetadata-token-parser-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Colmetadata Token Parser', function() {
4848
});
4949
});
5050

51-
it('should parse Int column metadata', async () => {
51+
it('should parse Int column metadata', async function() {
5252
const debug = new Debug();
5353
const numberOfColumns = 1;
5454
const userType = 2;
@@ -81,7 +81,7 @@ describe('Colmetadata Token Parser', function() {
8181
assert.isTrue((await parser.next()).done);
8282
});
8383

84-
it('should parse VarChar column metadata', async () => {
84+
it('should parse VarChar column metadata', async function() {
8585
const debug = new Debug();
8686
const numberOfColumns = 1;
8787
const userType = 2;

test/unit/token/done-token-parser-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function parse(status: number, curCmd: number, doneRowCount: number) {
2424
}
2525

2626
describe('Done Token Parser', () => {
27-
it('should parse a final done token', async () => {
27+
it('should parse a final done token', async function() {
2828
const status = 0x0000;
2929
const curCmd = 1;
3030
const doneRowCount = 2;
@@ -40,7 +40,7 @@ describe('Done Token Parser', () => {
4040
assert.isUndefined(token.rowCount);
4141
});
4242

43-
it('should parse a done token with more results', async () => {
43+
it('should parse a done token with more results', async function() {
4444
const status = 0x0001;
4545
const curCmd = 1;
4646
const doneRowCount = 2;
@@ -56,7 +56,7 @@ describe('Done Token Parser', () => {
5656
assert.isUndefined(token.rowCount);
5757
});
5858

59-
it('should parse a done token with row count', async () => {
59+
it('should parse a done token with row count', async function() {
6060
const status = 0x0010;
6161
const curCmd = 1;
6262
const doneRowCount = 0x1200000034;

test/unit/token/env-change-token-parser-test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { assert } from 'chai';
77
const options = { tdsVersion: '7_2', useUTC: false } as ParserOptions;
88

99
describe('Env Change Token Parser', () => {
10-
it('should parse database change', async () => {
10+
it('should parse database change', async function() {
1111
const debug = new Debug();
1212
const oldDb = 'old';
1313
const newDb = 'new';
@@ -34,7 +34,7 @@ describe('Env Change Token Parser', () => {
3434
assert.strictEqual(token.newValue, 'new');
3535
});
3636

37-
it('should parse packet size change', async () => {
37+
it('should parse packet size change', async function() {
3838
const debug = new Debug();
3939
const oldSize = '1024';
4040
const newSize = '2048';
@@ -61,7 +61,7 @@ describe('Env Change Token Parser', () => {
6161
assert.strictEqual(token.newValue, 2048);
6262
});
6363

64-
it('should skip unknown env change types', async () => {
64+
it('should skip unknown env change types', async function() {
6565
const debug = new Debug();
6666
const buffer = new WritableTrackingBuffer(50, 'ucs2');
6767

test/unit/token/feature-ext-parser-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { assert } from 'chai';
77
const options = { tdsVersion: '7_2', useUTC: false } as ParserOptions;
88

99
describe('Feature Ext Parser', () => {
10-
it('should parse federated authentication token', async () => {
10+
it('should parse federated authentication token', async function() {
1111
const debug = new Debug();
1212
const buffer = new WritableTrackingBuffer(50, 'ucs2');
1313

0 commit comments

Comments
 (0)