Skip to content

Commit 7058807

Browse files
committed
remove done() calls in test
1 parent 2ffb867 commit 7058807

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

test/postgresql.initialization.test.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var DataSource = require('loopback-datasource-juggler').DataSource;
1010
var should = require('should');
1111

1212
describe('initialization', function() {
13-
it('honours user-defined pg-pool settings', function(done) {
13+
it('honours user-defined pg-pool settings', function() {
1414
var dataSource = new DataSource(connector, {});
1515
var pool = dataSource.connector.pg.pool;
1616
pool._factory.max.should.not.equal(999);
@@ -19,11 +19,9 @@ describe('initialization', function() {
1919
var dataSource = new DataSource(connector, settings);
2020
var pool = dataSource.connector.pg.pool;
2121
pool._factory.max.should.equal(999);
22-
23-
done();
2422
});
2523

26-
it('honours user-defined url settings', function(done) {
24+
it('honours user-defined url settings', function() {
2725
var settings = {url: 'postgres://'};
2826

2927
var dataSource = new DataSource(connector, {});
@@ -33,11 +31,9 @@ describe('initialization', function() {
3331
var dataSource = new DataSource(connector, settings);
3432
var clientConfig = dataSource.connector.clientConfig;
3533
clientConfig.connectionString.should.equal(settings.url);
36-
37-
done();
3834
});
3935

40-
it('honours multiple user-defined settings', function(done) {
36+
it('honours multiple user-defined settings', function() {
4137
var settings = {url: 'postgres://', max: 999};
4238

4339
var dataSource = new DataSource(connector, settings);
@@ -46,7 +42,5 @@ describe('initialization', function() {
4642

4743
var clientConfig = dataSource.connector.clientConfig;
4844
clientConfig.connectionString.should.equal(settings.url);
49-
50-
done();
5145
});
5246
});

0 commit comments

Comments
 (0)