@@ -93,7 +93,7 @@ describe('getDecorationsFromHunk()', () => {
9393 getDecorationFromHunk ( FIXTURE_HUNK_1 , NOW , 0 , { 'git.blame.showPreciseDate' : false } , SOURCEGRAPH as any )
9494 ) . toEqual ( {
9595 after : {
96- contentText : 'a, 3 months ago: • c ' ,
96+ contentText : '3 months ago • a [c] ' ,
9797 dark : {
9898 backgroundColor : 'rgba(15, 43, 89, 0.65)' ,
9999 color : 'rgba(235, 235, 255, 0.55)' ,
@@ -125,7 +125,7 @@ describe('getDecorationsFromHunk()', () => {
125125 SOURCEGRAPH as any
126126 )
127127 expect ( decoration . after && decoration . after . contentText ) . toEqual (
128- 'a, 3 months ago: • asdgjdsag asdklgbasdghladg asdgjlhbasdgjlhabs…'
128+ '3 months ago • a [ asdgjdsag asdklgbasdghladg asdgjlhbasdgjlhabs…] '
129129 )
130130 } )
131131
@@ -148,7 +148,7 @@ describe('getDecorationsFromHunk()', () => {
148148 SOURCEGRAPH as any
149149 )
150150 expect ( decoration . after && decoration . after . contentText ) . toEqual (
151- 'asdgjdsag asdklgbasdghlad…, 3 months ago: • c '
151+ '3 months ago • asdgjdsag asdklgbasdghlad… [c] '
152152 )
153153 } )
154154} )
@@ -322,7 +322,7 @@ describe('getBlameDecorations()', () => {
322322 3 ,
323323 { 'git.blame.showPreciseDate' : false } ,
324324 SOURCEGRAPH as any
325- ) . after ! . contentText ! . startsWith (
325+ ) . after ! . contentText ! . includes (
326326 `(${ FIXTURE_HUNK_4 . author . person . user ! . username } ) ${ FIXTURE_HUNK_4 . author . person . displayName } `
327327 )
328328 ) . toBe ( true )
@@ -333,7 +333,7 @@ describe('getBlameDecorations()', () => {
333333 2 ,
334334 { 'git.blame.showPreciseDate' : false } ,
335335 SOURCEGRAPH as any
336- ) . after ! . contentText ! . startsWith ( `${ FIXTURE_HUNK_3 . author . person . displayName } ` )
336+ ) . after ! . contentText ! . includes ( `${ FIXTURE_HUNK_3 . author . person . displayName } ` )
337337 ) . toBe ( true )
338338 } )
339339} )
0 commit comments