File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -202,22 +202,24 @@ endfunction
202
202
function ! s: suite .ScratchBufferOpen_should_use_when_tmp_buffer_pattern () abort
203
203
let g: scratch_buffer_file_pattern = #{
204
204
\ when_tmp_buffer: fnamemodify (' ./test/tmp/scratch-tmp-%d' , ' :p' ),
205
+ \ when_file_buffer: ' not specified' ,
205
206
\ }
206
207
207
208
ScratchBufferOpen
208
209
const file_name = expand (' %:p' )
209
- const expected = printf (g: scratch_buffer_file_pattern .when_tmp_buffer, 0 )
210
+ const expected = printf (g: scratch_buffer_file_pattern .when_tmp_buffer, 0 ) .. ' .md '
210
211
call s: expect (file_name).to_equal (expected)
211
212
endfunction
212
213
213
214
function ! s: suite .ScratchBufferOpenFile_should_use_when_file_buffer_pattern () abort
214
215
let g: scratch_buffer_file_pattern = #{
216
+ \ when_tmp_buffer: ' not specified' ,
215
217
\ when_file_buffer: fnamemodify (' ./test/tmp/scratch-file-%d' , ' :p' ),
216
218
\ }
217
219
218
220
ScratchBufferOpenFile
219
221
const file_name = expand (' %:p' )
220
- const expected = printf (g: scratch_buffer_file_pattern .when_file_buffer, 0 )
222
+ const expected = printf (g: scratch_buffer_file_pattern .when_file_buffer, 0 ) .. ' .md '
221
223
call s: expect (file_name).to_equal (expected)
222
224
endfunction
223
225
You can’t perform that action at this time.
0 commit comments