refactor: Adapt to new repository

This commit is contained in:
T. R. Bernstein
2025-09-30 18:48:15 +02:00
parent 17af3bace1
commit 6811c71bd6
66 changed files with 224 additions and 622 deletions

View File

@@ -1,9 +1,3 @@
//
// Stencil
// Copyright © 2022 Stencil
// MIT Licence
//
import PathKit
import Spectre
@testable import Stencil
@@ -11,7 +5,7 @@ import XCTest
extension Expectation {
@discardableResult
func toThrow<T: Error>() throws -> T {
func toThrow<E: Error>() throws -> E {
var thrownError: Error?
do {
@@ -21,7 +15,7 @@ extension Expectation {
}
if let thrownError = thrownError {
if let thrownError = thrownError as? T {
if let thrownError = thrownError as? E {
return thrownError
} else {
throw failure("\(thrownError) is not \(T.self)")