We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b116619 commit 899df1fCopy full SHA for 899df1f
test/src/index.spec.js
@@ -25,6 +25,15 @@ describe('postgres', () => {
25
return expect(inst.query('`')).to.be.rejectedWith(Error)
26
})
27
28
+ describe('getTable', () => {
29
+ after(() => {
30
+ inst.schemaName = null
31
+ })
32
+ it('concats tableName with schemaName if the latter exists', () => {
33
+ inst.schemaName = 'testSchema'
34
+ expect(inst.getTable()).to.equal('"testSchema"."foo"')
35
36
37
describe('createTable', () => {
38
it('creates a new table based on object passed (if not exists)', () => {
39
return inst.createTable(fixd.postgres.createTable)
0 commit comments