make tests green again
This commit is contained in:
parent
0926754e68
commit
ae82406c8b
13 changed files with 18 additions and 17 deletions
|
|
@ -17,7 +17,7 @@ const
|
|||
var i = 0
|
||||
for item in items(tabs):
|
||||
var content = $i
|
||||
var file: TFile
|
||||
var file: File
|
||||
if open(file, changeFileExt(item[1], "html"), fmWrite):
|
||||
write(file, sunsetTemplate(current=item[1], ticker="", content=content,
|
||||
tabs=tabs))
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ template withOpenFile(f: untyped, filename: string, mode: FileMode,
|
|||
actions: untyped): untyped =
|
||||
block:
|
||||
# test that 'f' is implicitly 'injecting':
|
||||
var f: TFile
|
||||
var f: File
|
||||
if open(f, filename, mode):
|
||||
try:
|
||||
actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue