mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fix incorrect expectations in test.
This commit is contained in:
@@ -559,19 +559,13 @@ function Test_hunk_stage_preview_write()
|
|||||||
" original window
|
" original window
|
||||||
write
|
write
|
||||||
|
|
||||||
let expected = [
|
call s:assert_signs([], 'fixture.txt')
|
||||||
\ {'lnum': 6, 'name': 'GitGutterLineAdded'},
|
|
||||||
\ {'lnum': 7, 'name': 'GitGutterLineAdded'},
|
|
||||||
\ {'lnum': 8, 'name': 'GitGutterLineAdded'},
|
|
||||||
\ {'lnum': 9, 'name': 'GitGutterLineAdded'},
|
|
||||||
\ ]
|
|
||||||
call s:assert_signs(expected, 'fixture.txt')
|
|
||||||
|
|
||||||
call assert_equal([], s:git_diff())
|
call assert_equal([], s:git_diff())
|
||||||
|
|
||||||
let expected = [
|
let expected = [
|
||||||
\ 'diff --git a/fixture.txt b/fixture.txt',
|
\ 'diff --git a/fixture.txt b/fixture.txt',
|
||||||
\ 'index f5c6aff..975852f 100644',
|
\ 'index f5c6aff..3dd23a3 100644',
|
||||||
\ '--- a/fixture.txt',
|
\ '--- a/fixture.txt',
|
||||||
\ '+++ b/fixture.txt',
|
\ '+++ b/fixture.txt',
|
||||||
\ '@@ -5,0 +6,4 @@ e',
|
\ '@@ -5,0 +6,4 @@ e',
|
||||||
|
|||||||
Reference in New Issue
Block a user