Skip to content

Commit 658a53c

Browse files
committed
fix: make tests work with nimble lock file
1 parent 6f47af3 commit 658a53c

3 files changed

Lines changed: 2 additions & 17 deletions

File tree

serde.nimble

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,4 @@ requires "chronicles >= 0.10.3"
1111
requires "questionable >= 0.10.13 & < 0.11.0"
1212
requires "stint"
1313
requires "stew"
14-
15-
task test, "Run the test suite":
16-
exec "nimble install -d -y"
17-
withDir "tests":
18-
exec "nimble test"
14+
requires "asynctest >= 0.5.1 & < 0.6.0"

serde/json/deserializer.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ proc fromJson*(T: typedesc[StUint or StInt], json: string): ?!T =
322322
T.fromJson(newJString(json))
323323

324324
proc fromJson*[T: ref object or object](_: type ?T, json: string): ?!Option[T] =
325-
when T is (StUInt or StInt):
325+
when T is (StUint or StInt):
326326
let jsn = newJString(json)
327327
else:
328328
let jsn = ?JsonNode.parse(json) # full qualification required in-module only

tests/test.nimble

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)