Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
test previous version as well
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Jun 13, 2017
1 parent 30287c9 commit 5e2bb5c
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-79-npm/sequelize/sequelize.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = {
dependencies: {
'mysql': '*',
'mysql2': '*',
'pg': '*',
'pg-hstore': '*',
'sqlite3': '*',
Expand Down
11 changes: 11 additions & 0 deletions test/test-79-npm/sequelize/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';

module.exports = {
dependencies: {
'mysql': '*',
'pg': '*',
'pg-hstore': '*',
'sqlite3': '*',
'tedious': '*'
}
};
31 changes: 31 additions & 0 deletions test/test-79-npm/sequelize/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
'use strict';

var sequelize = require('sequelize');
if (typeof sequelize.and !== 'function') return;

var Dialect1 = require('sequelize/lib/dialects/mariadb');
var db1 = new Dialect1({ config: {}, options: { dialect: 'mariadb' } });
var cm1 = db1.connectionManager;
if (typeof cm1.lib.createConnection !== 'function') return;

var Dialect2 = require('sequelize/lib/dialects/mssql');
var db2 = new Dialect2({ config: {}, options: { dialect: 'mssql' } });
var cm2 = db2.connectionManager;
if (typeof cm2.lib.Connection !== 'function') return;

var Dialect3 = require('sequelize/lib/dialects/mysql');
var db3 = new Dialect3({ config: {}, options: { dialect: 'mysql' } });
var cm3 = db3.connectionManager;
if (typeof cm3.lib.createConnection !== 'function') return;

var Dialect4 = require('sequelize/lib/dialects/postgres');
var db4 = new Dialect4({ config: {}, options: { dialect: 'postgres' } });
var cm4 = db4.connectionManager;
if (typeof cm4.lib.Connection !== 'function') return;

var Dialect5 = require('sequelize/lib/dialects/sqlite');
var db5 = new Dialect5({ config: {}, options: { dialect: 'sqlite' } });
var cm5 = db5.connectionManager;
if (typeof cm5.lib.Database !== 'function') return;

console.log('ok');
10 changes: 10 additions & 0 deletions test/test-79-npm/sequelize/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

const home = require('../home.js');

module.exports = function (stamp) {
return {
allow: home(stamp),
moons: [ 'mysql', 'pg', 'pg-hstore', 'sqlite3', 'tedious' ]
};
};

0 comments on commit 5e2bb5c

Please sign in to comment.