@@ -60,10 +60,10 @@ describe('Send an invalid command: 2+', function() {
6060 } ) ;
6161} ) ;
6262
63- describe ( 'Create a database' , function ( ) {
63+ describe ( 'Create a database with execute ' , function ( ) {
6464 var reply , err ;
6565 before ( function ( done ) {
66- session . execute ( "create db database " , function ( e , r ) {
66+ session . execute ( "create db testdb " , function ( e , r ) {
6767 reply = r ;
6868 err = e ;
6969 done ( ) ;
@@ -93,7 +93,22 @@ describe('Add a document', function() {
9393describe ( 'drop db database' , function ( ) {
9494 var reply , err ;
9595 before ( function ( done ) {
96- session . execute ( "drop db database" , function ( e , r ) {
96+ session . execute ( "drop db testdb" , function ( e , r ) {
97+ reply = r ;
98+ err = e ;
99+ done ( ) ;
100+ } ) ;
101+ } ) ;
102+
103+ it ( 'It should not error' , function ( ) {
104+ should . not . exist ( err ) ;
105+ } ) ;
106+ } ) ;
107+
108+ describe ( 'create database' , function ( ) {
109+ var reply , err ;
110+ before ( function ( done ) {
111+ session . create ( "testdb" , "<x>Hello World!</x>" , function ( e , r ) {
97112 reply = r ;
98113 err = e ;
99114 done ( ) ;
@@ -108,7 +123,7 @@ describe('drop db database', function() {
108123describe ( 'drop db database' , function ( ) {
109124 var reply , err ;
110125 before ( function ( done ) {
111- session . execute ( "drop db database " , function ( e , r ) {
126+ session . execute ( "drop db testdb " , function ( e , r ) {
112127 reply = r ;
113128 err = e ;
114129 done ( ) ;
0 commit comments