forked from waterlinejs/oracle-adapter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
adapter.describe.js
42 lines (32 loc) · 875 Bytes
/
adapter.describe.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var adapter = require('../../lib/adapter'),
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();
});
});
});
});