Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Remove unnecessary undefined guards for test db connection strings #106

Merged
merged 1 commit into from
Aug 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions spec/databases/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const dbs = {
},
};

const postgres = new ConnectionString(process.env.POSTGRES_DSN || '', {
const postgres = new ConnectionString(process.env.POSTGRES_DSN, {
protocol: 'postgres',
user: 'postgres',
password: 'Password12!',
Expand All @@ -22,7 +22,7 @@ dbs.postgresql = {
database: postgres.path && postgres.path[0],
};

const mysql = new ConnectionString(process.env.MYSQL_DSN || '', {
const mysql = new ConnectionString(process.env.MYSQL_DSN, {
protocol: 'mysql',
user: 'root',
password: 'Password12!',
Expand All @@ -37,7 +37,7 @@ dbs.mysql = {
database: mysql.path && mysql.path[0],
};

const mariadb = new ConnectionString(process.env.MARIADB_DSN || '', {
const mariadb = new ConnectionString(process.env.MARIADB_DSN, {
user: 'root',
password: 'Password12!',
path: ['sqlectron'],
Expand All @@ -51,7 +51,7 @@ dbs.mariadb = {
database: mariadb.path && mariadb.path[0],
};

const sqlserver = new ConnectionString(process.env.SQLSERVER_DSN || '', {
const sqlserver = new ConnectionString(process.env.SQLSERVER_DSN, {
protocol: 'mssql',
user: 'sa',
password: 'Password12!',
Expand All @@ -66,7 +66,7 @@ dbs.sqlserver = {
database: sqlserver.path && sqlserver.path[0],
};

const cassandra = new ConnectionString(process.env.CASSANDRA_DSN || '', {
const cassandra = new ConnectionString(process.env.CASSANDRA_DSN, {
protocol: 'cassandra',
path: ['sqlectron'],
hosts: [{ name: 'localhost', port: 9042 }],
Expand Down