Skip to content

Commit

Permalink
tests: updated tests to new version of utils module
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 9ba259d7096f241431f76edb7fc91c0070e81136f0019196cf822f44c2235a2d
  • Loading branch information
thindil committed Jun 20, 2024
1 parent 0a71f1c commit d2f0788
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/help.nim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

## Provides unit tests for help module

import std/tables
import std/[paths, tables]
import utils/utils
import ../src/[aliases, db]
import unittest2
Expand All @@ -34,7 +34,7 @@ include ../src/help
suite "Unit tests for help module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test6.db")
let db: DbConn = initDb(dbName = "test6.db".Path)
var commands: ref Table[string, CommandData] = newTable[string, CommandData]()

test "Initializing the help system":
Expand Down
2 changes: 1 addition & 1 deletion tests/highlight.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ include ../src/highlight
suite "Unit tests for highlight module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test7.db")
let db: DbConn = initDb(dbName = "test7.db".Path)
var
myaliases: ref OrderedTable[string, int] = newOrderedTable[string, int]()
commands: ref Table[string, CommandData] = newTable[string, CommandData]()
Expand Down
2 changes: 1 addition & 1 deletion tests/history.nim
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ include ../src/history
suite "Unit tests for history module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test8.db")
let db: DbConn = initDb(dbName = "test8.db".Path)
var commands: ref Table[string, CommandData] = newTable[string, CommandData]()

checkpoint "Initializing the shell's history"
Expand Down
2 changes: 1 addition & 1 deletion tests/input.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ when defined(testInput):
suite "Unit tests for input module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test8.db")
let db: DbConn = initDb(dbName = "test8.db".Path)

test "Getting the command's arguments":
{.ruleOff: "varUplevel".}
Expand Down
2 changes: 1 addition & 1 deletion tests/nish.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ suite "Unit tests for nish module":
when defined(testInput):
checkpoint "Initializing the tests"
let
db: DbConn = initDb(dbName = "test10.db")
db: DbConn = initDb(dbName = "test10.db".Path)
myaliases: ref OrderedTable[string, int] = newOrderedTable[string, int]()
commands: ref Table[string, CommandData] = newTable[string, CommandData]()

Expand Down

0 comments on commit d2f0788

Please sign in to comment.