Skip to content

Commit

Permalink
Merge pull request #12 from vapor-community/fix-tests
Browse files Browse the repository at this point in the history
Update tests to use unsafe flag as safe is now the default
  • Loading branch information
0xTim committed Mar 26, 2020
2 parents 3318c8e + ab98274 commit 4fc2837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/vapor/template-kit.git", from: "1.4.0"),
.package(url: "https://github.com/vapor-community/markdown.git", from: "0.5.0"),
.package(url: "https://github.com/vapor-community/markdown.git", from: "0.6.1"),
.package(url: "https://github.com/vapor/leaf.git", from: "3.0.0"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Tests/LeafMarkdownTests/LeafTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class LeafTests: XCTestCase {

let queue = EmbeddedEventLoop()
let container = BasicContainer(config: .init(), environment: .testing, services: .init(), on: queue)
let tag = Markdown(options: [])
let tag = Markdown(options: [.unsafe])
var leafTagConfig = LeafTagConfig.default()
leafTagConfig.use(tag, as: tag.name)
let renderer = LeafRenderer(config: LeafConfig(tags: leafTagConfig, viewsDir: "", shouldCache: false),
Expand Down

0 comments on commit 4fc2837

Please sign in to comment.