@@ -93,7 +93,7 @@ describe('getDecorationsFromHunk()', () => {
93
93
getDecorationFromHunk ( FIXTURE_HUNK_1 , NOW , 0 , { 'git.blame.showPreciseDate' : false } , SOURCEGRAPH as any )
94
94
) . toEqual ( {
95
95
after : {
96
- contentText : 'a, 3 months ago: • c ' ,
96
+ contentText : '3 months ago • a [c] ' ,
97
97
dark : {
98
98
backgroundColor : 'rgba(15, 43, 89, 0.65)' ,
99
99
color : 'rgba(235, 235, 255, 0.55)' ,
@@ -125,7 +125,7 @@ describe('getDecorationsFromHunk()', () => {
125
125
SOURCEGRAPH as any
126
126
)
127
127
expect ( decoration . after && decoration . after . contentText ) . toEqual (
128
- 'a, 3 months ago: • asdgjdsag asdklgbasdghladg asdgjlhbasdgjlhabs…'
128
+ '3 months ago • a [ asdgjdsag asdklgbasdghladg asdgjlhbasdgjlhabs…] '
129
129
)
130
130
} )
131
131
@@ -148,7 +148,7 @@ describe('getDecorationsFromHunk()', () => {
148
148
SOURCEGRAPH as any
149
149
)
150
150
expect ( decoration . after && decoration . after . contentText ) . toEqual (
151
- 'asdgjdsag asdklgbasdghlad…, 3 months ago: • c '
151
+ '3 months ago • asdgjdsag asdklgbasdghlad… [c] '
152
152
)
153
153
} )
154
154
} )
@@ -322,7 +322,7 @@ describe('getBlameDecorations()', () => {
322
322
3 ,
323
323
{ 'git.blame.showPreciseDate' : false } ,
324
324
SOURCEGRAPH as any
325
- ) . after ! . contentText ! . startsWith (
325
+ ) . after ! . contentText ! . includes (
326
326
`(${ FIXTURE_HUNK_4 . author . person . user ! . username } ) ${ FIXTURE_HUNK_4 . author . person . displayName } `
327
327
)
328
328
) . toBe ( true )
@@ -333,7 +333,7 @@ describe('getBlameDecorations()', () => {
333
333
2 ,
334
334
{ 'git.blame.showPreciseDate' : false } ,
335
335
SOURCEGRAPH as any
336
- ) . after ! . contentText ! . startsWith ( `${ FIXTURE_HUNK_3 . author . person . displayName } ` )
336
+ ) . after ! . contentText ! . includes ( `${ FIXTURE_HUNK_3 . author . person . displayName } ` )
337
337
) . toBe ( true )
338
338
} )
339
339
} )
0 commit comments