From 97d1a0dc9fd0e1b22a7c8774f50b2d99564be8b6 Mon Sep 17 00:00:00 2001 From: Gabriel Minucci Date: Thu, 16 Jan 2025 09:04:14 +0100 Subject: [PATCH] chore: checking path for template in CI --- Templates/ios/Variants.swift.template.gyb | 2 +- Tests/VariantsCoreTests/VariantsFileFactoryTests.swift | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Templates/ios/Variants.swift.template.gyb b/Templates/ios/Variants.swift.template.gyb index ae77d41..e0c1421 100644 --- a/Templates/ios/Variants.swift.template.gyb +++ b/Templates/ios/Variants.swift.template.gyb @@ -13,7 +13,7 @@ def encode(string, cipher): // Variants // // Copyright (c) Backbase B.V. - https://www.backbase.com -// Created by Arthur Alves 2 +// Created by Arthur Alves // import Foundation diff --git a/Tests/VariantsCoreTests/VariantsFileFactoryTests.swift b/Tests/VariantsCoreTests/VariantsFileFactoryTests.swift index b1d4e4d..2112ef3 100644 --- a/Tests/VariantsCoreTests/VariantsFileFactoryTests.swift +++ b/Tests/VariantsCoreTests/VariantsFileFactoryTests.swift @@ -74,6 +74,9 @@ class VariantsFileFactoryTests: XCTestCase { let variantsFilePath = Bundle(for: type(of: self)).path(forResource: "Resources/ios/Variants", ofType: "swift") XCTAssertNotNil(variantsFilePath) guard let variantsFile = variantsFilePath else { return } + + XCTAssertTrue(false, "Reading template path from \(try! TemplateDirectory().path.string)") + XCTAssertEqual(try String(contentsOfFile: variantsFile), variantsSwiftContent) }