@@ -22,26 +22,37 @@ describe('Document constructor', function () {
2222    should ( document ) . be . instanceof ( Document ) ; 
2323    should ( document . id ) . be . undefined ( ) ; 
2424    should ( document . content ) . be . empty ( ) ; 
25+     should ( document . meta ) . be . empty ( ) ; 
2526    should ( document . version ) . be . undefined ( ) ; 
2627    should ( document . collection ) . be . exactly ( 'foo' ) ; 
2728
2829    document  =  new  Document ( collection ,  {  some : 'content'  } ) ; 
2930    should ( document . id ) . be . undefined ( ) ; 
3031    should ( document . content ) . match ( { some : 'content' } ) ; 
32+     should ( document . meta ) . be . empty ( ) ; 
3133    should ( document . version ) . be . undefined ( ) ; 
3234    should ( document . collection ) . be . exactly ( 'foo' ) ; 
3335
3436    document  =  new  Document ( collection ,  'id' ,  {  some : 'content' ,  _version : 123  } ) ; 
3537    should ( document . id ) . be . exactly ( 'id' ) ; 
3638    should ( document . content ) . match ( { some : 'content' } ) ; 
39+     should ( document . meta ) . be . empty ( ) ; 
3740    should ( document . version ) . be . exactly ( 123 ) ; 
3841    should ( document . collection ) . be . exactly ( 'foo' ) ; 
3942
4043    document  =  new  Document ( collection ,  'id' ) ; 
4144    should ( document . id ) . be . exactly ( 'id' ) ; 
4245    should ( document . content ) . be . empty ( ) ; 
46+     should ( document . meta ) . be . empty ( ) ; 
4347    should ( document . version ) . be . undefined ( ) ; 
4448    should ( document . collection ) . be . exactly ( 'foo' ) ; 
49+ 
50+     document  =  new  Document ( collection ,  'id' ,  {  some : 'content' ,  _version : 123  } ,  { author : 'toto' } ) ; 
51+     should ( document . id ) . be . exactly ( 'id' ) ; 
52+     should ( document . content ) . match ( { some : 'content' } ) ; 
53+     should ( document . meta ) . match ( { author : 'toto' } ) ; 
54+     should ( document . version ) . be . exactly ( 123 ) ; 
55+     should ( document . collection ) . be . exactly ( 'foo' ) ; 
4556  } ) ; 
4657
4758  it ( 'should expose documented properties with the right permissions' ,  function  ( )  { 
@@ -52,6 +63,7 @@ describe('Document constructor', function () {
5263    should ( document ) . have . propertyWithDescriptor ( 'headers' ,  {  enumerable : true ,  writable : true ,  configurable : false  } ) ; 
5364    should ( document ) . have . propertyWithDescriptor ( 'id' ,  {  enumerable : true ,  writable : true ,  configurable : false  } ) ; 
5465    should ( document ) . have . propertyWithDescriptor ( 'version' ,  {  enumerable : true ,  writable : true ,  configurable : false  } ) ; 
66+     should ( document ) . have . propertyWithDescriptor ( 'meta' ,  {  enumerable : true ,  writable : false ,  configurable : false  } ) ; 
5567  } ) ; 
5668
5769  it ( 'should promisify the right functions' ,  function  ( )  { 
0 commit comments