swift format
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import XCTest
|
||||
@testable import HummingbirdMustache
|
||||
import XCTest
|
||||
|
||||
final class LibraryTests: XCTestCase {
|
||||
func testDirectoryLoad() throws {
|
||||
@@ -10,7 +10,7 @@ final class LibraryTests: XCTestCase {
|
||||
defer { XCTAssertNoThrow(try fs.removeItem(atPath: "templates")) }
|
||||
try data.write(to: URL(fileURLWithPath: "templates/test.mustache"))
|
||||
defer { XCTAssertNoThrow(try fs.removeItem(atPath: "templates/test.mustache")) }
|
||||
|
||||
|
||||
let library = 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