Skip to content

Commit

Permalink
Update tests to use unsafe flag as safe is now the default
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Mar 26, 2020
1 parent 3318c8e commit ab98274
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 ab98274

Please sign in to comment.