Skip to content

Commit ea53725

Browse files
authored
Bump linter (#14)
1 parent 72d845e commit ea53725

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

.swiftformat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515
--enable wrapMultilineStatementBraces
1616
--disable consistentSwitchCaseSpacing
1717
--disable blankLineAfterSwitchCase
18+
19+
# global
20+
--swiftversion 6.0

CLI/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CLI/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let package = Package(
1010
],
1111
products: [],
1212
dependencies: [
13-
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.54.5"),
13+
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.56.1"),
1414
],
1515
targets: []
1616
)

Tests/TestingExpectationTests/ExpectationTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import Testing
2626

2727
struct ExpectationTests {
2828
@Test
29-
func test_fulfill_triggersExpectation() async {
29+
func fulfill_triggersExpectation() async {
3030
await confirmation { confirmation in
3131
let systemUnderTest = Expectation(
3232
expectedCount: 1,
@@ -40,7 +40,7 @@ struct ExpectationTests {
4040
}
4141

4242
@Test
43-
func test_fulfill_triggersExpectationOnceWhenCalledTwiceAndExpectedCountIsTwo() async {
43+
func fulfill_triggersExpectationOnceWhenCalledTwiceAndExpectedCountIsTwo() async {
4444
await confirmation { confirmation in
4545
let systemUnderTest = Expectation(
4646
expectedCount: 2,
@@ -55,7 +55,7 @@ struct ExpectationTests {
5555
}
5656

5757
@Test
58-
func test_fulfill_triggersExpectationWhenExpectedCountIsZero() async {
58+
func fulfill_triggersExpectationWhenExpectedCountIsZero() async {
5959
await confirmation { confirmation in
6060
let systemUnderTest = Expectation(
6161
expectedCount: 0,
@@ -69,14 +69,14 @@ struct ExpectationTests {
6969
}
7070

7171
@Test
72-
func test_fulfillment_doesNotWaitIfAlreadyFulfilled() async {
72+
func fulfillment_doesNotWaitIfAlreadyFulfilled() async {
7373
let systemUnderTest = Expectation(expectedCount: 0)
7474
await systemUnderTest.fulfillment(within: .seconds(10))
7575
}
7676

7777
@MainActor // Global actor ensures Task ordering.
7878
@Test
79-
func test_fulfillment_waitsForFulfillment() async {
79+
func fulfillment_waitsForFulfillment() async {
8080
let systemUnderTest = Expectation(expectedCount: 1)
8181
var hasFulfilled = false
8282
let wait = Task {
@@ -91,7 +91,7 @@ struct ExpectationTests {
9191
}
9292

9393
@Test
94-
func test_fulfillment_triggersFalseExpectationWhenItTimesOut() async {
94+
func fulfillment_triggersFalseExpectationWhenItTimesOut() async {
9595
await confirmation { confirmation in
9696
let systemUnderTest = Expectation(
9797
expectedCount: 1,

Tests/TestingExpectationTests/ExpectationsTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ import Testing
2626

2727
struct ExpectationsTests {
2828
@Test
29-
func test_fulfillment_doesNotWaitIfAlreadyFulfilled() async {
29+
func fulfillment_doesNotWaitIfAlreadyFulfilled() async {
3030
let expectation = Expectation(expectedCount: 0)
3131
await Expectations(expectation).fulfillment(within: .seconds(10))
3232
}
3333

3434
@MainActor // Global actor ensures Task ordering.
3535
@Test
36-
func test_fulfillment_waitsForFulfillmentOfSingleExpectation() async {
36+
func fulfillment_waitsForFulfillmentOfSingleExpectation() async {
3737
let expectation = Expectation(expectedCount: 1)
3838
var hasFulfilled = false
3939
let wait = Task {
@@ -49,7 +49,7 @@ struct ExpectationsTests {
4949

5050
@MainActor // Global actor ensures Task ordering.
5151
@Test
52-
func test_fulfillment_waitsForFulfillmentOfMultipleExpectations() async {
52+
func fulfillment_waitsForFulfillmentOfMultipleExpectations() async {
5353
let expectation1 = Expectation(expectedCount: 1)
5454
let expectation2 = Expectation(expectedCount: 1)
5555
let expectation3 = Expectation(expectedCount: 1)
@@ -68,7 +68,7 @@ struct ExpectationsTests {
6868
}
6969

7070
@Test
71-
func test_fulfillment_triggersFalseExpectationWhenSingleExpectationTimesOut() async {
71+
func fulfillment_triggersFalseExpectationWhenSingleExpectationTimesOut() async {
7272
await confirmation { confirmation in
7373
let expectation = Expectation(
7474
expectedCount: 1,
@@ -83,7 +83,7 @@ struct ExpectationsTests {
8383
}
8484

8585
@Test
86-
func test_fulfillment_triggersFalseExpectationWhenSingleExpectationOfManyTimesOut() async {
86+
func fulfillment_triggersFalseExpectationWhenSingleExpectationOfManyTimesOut() async {
8787
await confirmation(expectedCount: 3) { confirmation in
8888
let expectation1 = Expectation(
8989
expectedCount: 1,

0 commit comments

Comments
 (0)