Skip to content

Commit

Permalink
test naming and unnecessary import clean up (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliemeobn authored Dec 16, 2024
1 parent c0df782 commit e3f5e6e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
15 changes: 8 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ let package = Package(
],
swiftSettings: featureFlags
),
.testTarget(
name: "TestUtilities",
dependencies: [
.product(name: "Elementary", package: "elementary"),
],
swiftSettings: featureFlags
),
.testTarget(
name: "ElementaryHTMXTest",
dependencies: [
Expand Down Expand Up @@ -95,5 +88,13 @@ let package = Package(
],
swiftSettings: featureFlags
),
.target(
name: "TestUtilities",
dependencies: [
.product(name: "Elementary", package: "elementary"),
],
path: "Tests/TestUtilities",
swiftSettings: featureFlags
),
]
)
1 change: 0 additions & 1 deletion Sources/ElementaryHTMXSSE/HTMLAttribute+HTMXSSE.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Elementary
import ElementaryHTMX

public extension HTMLAttribute where Tag: HTMLTrait.Attributes.Global {
/// A namespace for the HTMX SSE-extension.
Expand Down
1 change: 0 additions & 1 deletion Sources/ElementaryHTMXWS/HTMLAttribute+HTMX.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Elementary
import ElementaryHTMX

public extension HTMLAttribute where Tag: HTMLTrait.Attributes.Global {
/// A namespace for the HTMX SSE-extension.
Expand Down
2 changes: 1 addition & 1 deletion Tests/ElementaryHTMXSSETest/ElementaryHTMXSSETest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ElementaryHTMXSSE
import TestUtilities
import XCTest

final class elementary_htmxsseTests: XCTestCase {
final class ElementaryHTMXSSETests: XCTestCase {
func testExtension() {
HTMLAttributeAssertEqual(.hx.ext(.sse), "hx-ext", "sse")
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/ElementaryHTMXTest/ElementaryHTMXTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ElementaryHTMX
import TestUtilities
import XCTest

final class elementary_htmxTests: XCTestCase {
final class ElementaryHTMXTests: XCTestCase {
func testMethods() {
HTMLAttributeAssertEqual(.hx.get("/test"), "hx-get", "/test")
HTMLAttributeAssertEqual(.hx.post("/test"), "hx-post", "/test")
Expand Down
2 changes: 1 addition & 1 deletion Tests/ElementaryHTMXWSTest/ElemntaryHTMXWSTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ElementaryHTMXWS
import TestUtilities
import XCTest

final class elementary_htmxsseTests: XCTestCase {
final class ElementaryHTMXWSTests: XCTestCase {
func testExtension() {
HTMLAttributeAssertEqual(.hx.ext(.ws), "hx-ext", "ws")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ElementaryHyperscript
import TestUtilities
import XCTest

final class elementary_hyperscriptTests: XCTestCase {
final class ElementaryHyperscriptTests: XCTestCase {
func testScript() {
HTMLAttributeAssertEqual(.hyperscript("on click send hello to <form />"), "_", "on click send hello to <form />")
}
Expand Down

0 comments on commit e3f5e6e

Please sign in to comment.