Skip to content

Commit

Permalink
Merge 41416ca into 0ba5deb
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalBush committed Mar 13, 2020
2 parents 0ba5deb + 41416ca commit 5061d09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions spec/integration/basic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ describe( "Basic - Integration", () => {
return sql.dispose();
} );

describe( "types", () => {
const { types } = skwell;
Object.keys( types ).forEach( name => {
it( `should have same ${ name } type for module and client`, () => {
types[ name ].should.equal( sql[ name ] );
} );
} );
} );

describe( "execute", () => {
it( "should work without params", () => {
const query = `
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const Api = require( "./api" );
const Client = require( "./client" );
const Transaction = require( "./transaction" );
const types = require( "./types" );

module.exports = {
connect( config ) { return new Client( config ); },
Api,
Client,
Transaction
Transaction,
types
};

0 comments on commit 5061d09

Please sign in to comment.