Skip to content

Commit ec43eeb

Browse files
committed
Expose reset method publically.
1 parent 1b1240b commit ec43eeb

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

Example/Tests/Tests.swift

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ class Tests: XCTestCase {
120120
return false
121121
}
122122

123-
124123
guard let mPreview = MicrolinkPreview(apiKey: nil) else {
125124
XCTFail()
126125
return false

Package.swift

-9
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ let package = Package(
1313
dependencies: [
1414
],
1515
targets: [
16-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
17-
// Targets can depend on other targets in this package, and on products in packages this package depends on.
1816
.target(
1917
name: "SMLinkPreview",
2018
dependencies: [],
@@ -26,10 +24,3 @@ let package = Package(
2624
]
2725
)
2826

29-
/*
30-
.target(
31-
name: "HelloWorldProgram",
32-
dependencies: [],
33-
resources: [.copy("README.md"), .copy("image.png")]
34-
)
35-
*/

Sources/SMLinkPreview/PreviewManager.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ public class PreviewManager {
3232
sources += [source]
3333
}
3434

35-
// For testing
36-
func reset() {
35+
public func reset() {
3736
sources = []
3837
}
3938

0 commit comments

Comments
 (0)