UNPKG

water-orm

Version:

A monolith version of Standalone waterline ORM

43 lines (32 loc) 951 B
var adapter = require('../../../../lib/adapters/worm-postgresql/adapter.js'), should = require('should'), support = require('./support/bootstrap'); describe('adapter', function() { /** * Setup and Teardown */ before(function(done) { support.Setup('test_describe', done); }); after(function(done) { support.Teardown('test_describe', done); }); /** * DESCRIBE * * Similar to MySQL's Describe method this should list the * properties of a table. */ describe('.describe()', function() { // Output Column Names it('should output the column names', function(done) { adapter.describe('test', 'test_describe', function(err, results) { Object.keys(results).length.should.eql(3); should.exist(results.id); should.exist(results.field_1); should.exist(results.field_2); done(); }); }); }); });