## Mixed template file (Jinja + HTML) validator tests.
|
|
|
|
import std/[unittest, strutils]
|
|
import ../src/nimcheck
|
|
|
|
suite "Mixed File Validator":
|
|
test "validateFile on .html.j2 mixed file":
|
|
let result = validateFile("tests/fixtures/mixed/template.html.j2")
|
|
check true
|
|
|
|
test "inspectFile returns JSON for mixed file":
|
|
let json = inspectFile("tests/fixtures/mixed/template.html.j2")
|
|
check json.kind == JObject
|