Skip to content

Commit

Permalink
Fix build error in tests on linux
Browse files Browse the repository at this point in the history
fork
  • Loading branch information
roanutil committed May 17, 2024
1 parent fcc158c commit ffefa08
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Tests/StencilTests/NowNodeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import XCTest
final class NowNodeTests: XCTestCase {
func testParsing() throws {
_ = try {
#if os(Linux)
throw skip()
#else
#if !os(Linux)
let tokens: [Token] = [.block(value: "now", at: .unknown)]
let parser = TokenParser(tokens: tokens, environment: Environment())

Expand All @@ -39,9 +37,7 @@ final class NowNodeTests: XCTestCase {
}()

_ = try {
#if os(Linux)
throw skip()
#else
#if !os(Linux)
let tokens: [Token] = [.block(value: "now \"HH:mm\"", at: .unknown)]
let parser = TokenParser(tokens: tokens, environment: Environment())
let nodes = try parser.parse()
Expand All @@ -62,9 +58,7 @@ final class NowNodeTests: XCTestCase {

func testRendering() throws {
_ = try {
#if os(Linux)
throw skip()
#else
#if !os(Linux)
let node = NowNode(format: Variable("\"yyyy-MM-dd\""))

let formatter = DateFormatter()
Expand Down

0 comments on commit ffefa08

Please sign in to comment.