@@ -21,7 +21,7 @@ describe('Container::CorpusMask', function () {
2121 } ,
2222 children : [ ] , // To avoid rendering the Search component
2323 corpusMask : Immutable . fromJS ( {
24- dbname : 222 ,
24+ dbname : 'abc' ,
2525 title : 'the-corpusMask-title' ,
2626 team : {
2727 id : 1234 ,
@@ -30,6 +30,9 @@ describe('Container::CorpusMask', function () {
3030 fields : [ ] ,
3131 prototypeApp : {
3232 url : ''
33+ } ,
34+ connection : {
35+ dbname : 'abc'
3336 }
3437 } ) ,
3538 searchResults : Immutable . fromJS ( [ ] )
@@ -42,6 +45,13 @@ describe('Container::CorpusMask', function () {
4245 } )
4346
4447 expect ( doc ) . to . have . keys ( [ 'component' , 'root' , 'node' , 'nodes' , 'length' , 'options' , 'complexSelector' ] )
48+
49+ const images = doc . find ( 'img' )
50+ expect ( images ) . to . exist
51+ expect ( images . length ) . to . equal ( 2 )
52+
53+ const avatar = images . nodes [ 0 ]
54+ expect ( avatar . getAttribute ( 'src' ) ) . to . equal ( 'https://secure.gravatar.com/avatar/900150983cd24fb0d6963f7d28e17f72.jpg?s=96&d=retro&r=pg' )
4555 } )
4656
4757 it ( 'should support OLAC metadata in header' , function ( ) {
@@ -52,16 +62,19 @@ describe('Container::CorpusMask', function () {
5262 teamname : 'someone'
5363 } ,
5464 corpusMask : Immutable . fromJS ( {
55- dbname : 222 ,
65+ dbname : 'abc' ,
5666 title : 'the-corpusMask-title' ,
67+ connection : {
68+ dbname : 'abc'
69+ } ,
5770 description : 'hi \n* a \n* list' ,
5871 dateCreated : 1411424261782 ,
5972 dateModified : 1490462360903 ,
6073 keywords : 'kartuli, batumi, natural speech' ,
6174 copyright : 'Georgian Together Users' ,
6275 termsOfUse : 'any \nterms' ,
6376 team : {
64- id : 1234 ,
77+ id : '123-efg' ,
6578 name : 'jack'
6679 } ,
6780 fields : [ {
@@ -129,7 +142,10 @@ describe('Container::CorpusMask', function () {
129142 teamname : 'someone'
130143 } ,
131144 corpusMask : Immutable . fromJS ( {
132- dbname : 222 ,
145+ dbname : 'abc' ,
146+ connection : {
147+ dbname : 'abc'
148+ } ,
133149 title : 'the-corpusMask-title' ,
134150 description : 'hi \n* a \n* list' ,
135151 termsOfUse : 'some \nterms' ,
0 commit comments