Skip to content

Commit

Permalink
Fixed Lint Violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Büth committed Jan 8, 2019
1 parent 628378e commit e043305
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/StencilSwiftKitTests/ImportNodeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ImportNodeTests: XCTestCase {
let output = try node.render(context)

XCTAssertEqual(output, "")
XCTAssertEqual(loader.loadtemplateCalledWithName!, "Macros.stencil")
XCTAssertEqual(loader.loadtemplateCalledWithName, "Macros.stencil")
}

func testRenderLoaderFail() {
Expand All @@ -74,8 +74,8 @@ class ImportNodeTests: XCTestCase {
let someLoaderError = TemplateDoesNotExist(templateNames: ["Macros.stencil"])
loader.loadTemplateError = someLoaderError

XCTAssertThrowsError(try node.render(context), "") { (error) in
guard let _ = error as? TemplateDoesNotExist else {
XCTAssertThrowsError(try node.render(context), "") { error in
guard error as? TemplateDoesNotExist != nil else {
XCTFail(error.localizedDescription)
return
}
Expand All @@ -89,8 +89,8 @@ class ImportNodeTests: XCTestCase {
let context = Context(environment: environment)
let node = ImportNode(templateName: Variable("a"))

XCTAssertThrowsError(try node.render(context), "") { (error) in
guard let _ = error as? TemplateSyntaxError else {
XCTAssertThrowsError(try node.render(context), "") { error in
guard error as? TemplateSyntaxError != nil else {
XCTFail(error.localizedDescription)
return
}
Expand Down

0 comments on commit e043305

Please sign in to comment.