Skip to content

Commit ac71580

Browse files
committed
Test fixes
1 parent ba17c72 commit ac71580

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

Tests/SourceKitLSPTests/DocumentPlaygroundDiscoveryTests.swift

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ final class DocumentPlaygroundDiscoveryTests: XCTestCase {
4545
}6️⃣
4646
"""
4747
],
48-
manifest: """
49-
import PackageDescription
50-
let package = Package(
51-
name: "MyLibrary",
52-
targets: [.target(name: "MyLibrary")]
53-
)
54-
""",
5548
)
5649

5750
let (uri, positions) = try project.openDocument("MyLib.swift")
@@ -83,7 +76,7 @@ final class DocumentPlaygroundDiscoveryTests: XCTestCase {
8376
func testNoImportPlaygrounds() async throws {
8477
let project = try await SwiftPMTestProject(
8578
files: [
86-
"Sources/MyLibrary/MyLib.swift": """
79+
"MyLib.swift": """
8780
public func foo() -> String {
8881
"bar"
8982
}
@@ -107,13 +100,6 @@ final class DocumentPlaygroundDiscoveryTests: XCTestCase {
107100
}
108101
"""
109102
],
110-
manifest: """
111-
import PackageDescription
112-
let package = Package(
113-
name: "MyLibrary",
114-
targets: [.target(name: "MyLibrary")]
115-
)
116-
""",
117103
)
118104

119105
let (uri, _) = try project.openDocument("MyLib.swift")
@@ -126,7 +112,7 @@ final class DocumentPlaygroundDiscoveryTests: XCTestCase {
126112
func testParseNoPlaygrounds() async throws {
127113
let project = try await SwiftPMTestProject(
128114
files: [
129-
"Sources/MyLibrary/MyLib.swift": """
115+
"MyLib.swift": """
130116
import Playgrounds
131117
132118
public func Playground(_ i: Int, _ j: Int) -> Int {
@@ -139,13 +125,6 @@ final class DocumentPlaygroundDiscoveryTests: XCTestCase {
139125
}
140126
"""
141127
],
142-
manifest: """
143-
import PackageDescription
144-
let package = Package(
145-
name: "MyLibrary",
146-
targets: [.target(name: "MyLibrary")]
147-
)
148-
""",
149128
)
150129

151130
let (uri, _) = try project.openDocument("MyLib.swift")

0 commit comments

Comments
 (0)