diff --git a/package.json b/package.json index 4a59b3a..2f0c485 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "brianc ", "name": "sql", "description": "sql builder", - "version": "0.2.4", + "version": "0.3.0", "homepage": "https://github.com/brianc/node-sql", "repository": { "type": "git", diff --git a/test/postgres/aggregate-tests.js b/test/dialects/aggregate-tests.js similarity index 100% rename from test/postgres/aggregate-tests.js rename to test/dialects/aggregate-tests.js diff --git a/test/postgres/alter-table-tests.js b/test/dialects/alter-table-tests.js similarity index 100% rename from test/postgres/alter-table-tests.js rename to test/dialects/alter-table-tests.js diff --git a/test/postgres/create-table-tests.js b/test/dialects/create-table-tests.js similarity index 100% rename from test/postgres/create-table-tests.js rename to test/dialects/create-table-tests.js diff --git a/test/postgres/delete-tests.js b/test/dialects/delete-tests.js similarity index 100% rename from test/postgres/delete-tests.js rename to test/dialects/delete-tests.js diff --git a/test/postgres/drop-table-tests.js b/test/dialects/drop-table-tests.js similarity index 100% rename from test/postgres/drop-table-tests.js rename to test/dialects/drop-table-tests.js diff --git a/test/postgres/group-by-tests.js b/test/dialects/group-by-tests.js similarity index 100% rename from test/postgres/group-by-tests.js rename to test/dialects/group-by-tests.js diff --git a/test/postgres/index.js b/test/dialects/index.js similarity index 100% rename from test/postgres/index.js rename to test/dialects/index.js diff --git a/test/postgres/insert-tests.js b/test/dialects/insert-tests.js similarity index 100% rename from test/postgres/insert-tests.js rename to test/dialects/insert-tests.js diff --git a/test/postgres/join-tests.js b/test/dialects/join-tests.js similarity index 100% rename from test/postgres/join-tests.js rename to test/dialects/join-tests.js diff --git a/test/postgres/limit-and-offset-tests.js b/test/dialects/limit-and-offset-tests.js similarity index 100% rename from test/postgres/limit-and-offset-tests.js rename to test/dialects/limit-and-offset-tests.js diff --git a/test/postgres/namespace-tests.js b/test/dialects/namespace-tests.js similarity index 100% rename from test/postgres/namespace-tests.js rename to test/dialects/namespace-tests.js diff --git a/test/postgres/order-tests.js b/test/dialects/order-tests.js similarity index 100% rename from test/postgres/order-tests.js rename to test/dialects/order-tests.js diff --git a/test/postgres/schema-tests.js b/test/dialects/schema-tests.js similarity index 100% rename from test/postgres/schema-tests.js rename to test/dialects/schema-tests.js diff --git a/test/postgres/shortcut-tests.js b/test/dialects/shortcut-tests.js similarity index 100% rename from test/postgres/shortcut-tests.js rename to test/dialects/shortcut-tests.js diff --git a/test/postgres/support.js b/test/dialects/support.js similarity index 100% rename from test/postgres/support.js rename to test/dialects/support.js diff --git a/test/postgres/table-tests.js b/test/dialects/table-tests.js similarity index 100% rename from test/postgres/table-tests.js rename to test/dialects/table-tests.js diff --git a/test/postgres/update-tests.js b/test/dialects/update-tests.js similarity index 100% rename from test/postgres/update-tests.js rename to test/dialects/update-tests.js diff --git a/test/index.js b/test/index.js index a75ae2d..15d573f 100644 --- a/test/index.js +++ b/test/index.js @@ -7,16 +7,15 @@ var testDir = path.dirname(require.main.filename); var directories = [ testDir, - testDir + '/postgres' + testDir + '/dialects' ]; directories.forEach(function (d) { - fs.readdir(d, function(err, files) { - if(err) throw err; - /*jshint boss: true */ - for(var i = 0, file; file = files[i]; i++) { - var filePath = path.join(d, file); - require(filePath); - } - }); + var files = fs.readdirSync(d); + /*jshint boss: true */ + for(var i = 0, file; file = files[i]; i++) { + var filePath = path.join(d, file); + console.log(filePath); + require(filePath); + } });