Fix unit test

This commit is contained in:
1024jp 2022-03-27 15:50:32 +09:00
parent 4027a89b0a
commit 2f6b2d7a79
2 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
language = "en"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "YES">
<CodeCoverageTargets>

View File

@ -9,7 +9,7 @@
//
// ---------------------------------------------------------------------------
//
// © 2016-2020 1024jp
// © 2016-2022 1024jp
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -49,7 +49,7 @@ final class SyntaxTests: XCTestCase {
let bundle = Bundle(for: type(of: self))
// load styles
let dictsWithNames = bundle.urls(forResourcesWithExtension: "yaml", subdirectory: styleDirectoryName)!
let dictsWithNames = bundle.urls(forResourcesWithExtension: "yml", subdirectory: styleDirectoryName)!
.map { url -> (String, SyntaxManager.StyleDictionary) in
let string = try! String(contentsOf: url)
let name = url.deletingPathExtension().lastPathComponent