Don't log files that dont load throw error instead
remove swift-log dependency
This commit is contained in:
@@ -11,7 +11,7 @@ final class LibraryTests: XCTestCase {
|
||||
try data.write(to: URL(fileURLWithPath: "templates/test.mustache"))
|
||||
defer { XCTAssertNoThrow(try fs.removeItem(atPath: "templates/test.mustache")) }
|
||||
|
||||
let library = HBMustacheLibrary(directory: "./templates")
|
||||
let library = try HBMustacheLibrary(directory: "./templates")
|
||||
let object = ["value": ["value1", "value2"]]
|
||||
XCTAssertEqual(library.render(object, withTemplate: "test"), "<test><value>value1</value><value>value2</value></test>")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user