Skip to content

Commit

Permalink
refactor: Remove linter for Demo App
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziodemaria committed Dec 9, 2024
1 parent 1a0b34a commit 5564a63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ excluded:
- ${PWD}/DerivedData
- ${PWD}/.build
- ${PWD}/Tools/*/.build
- ${PWD}/Sources/ConfidenceProvider/FlagResolver/
- ${PWD}/ConfidenceDemoApp

disabled_rules:
- discarded_notification_center_observer
Expand Down
8 changes: 4 additions & 4 deletions Tests/ConfidenceTests/ConfidenceTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class ConfidenceTest: XCTestCase {
await fulfillment(of: [flagApplier.applyExpectation], timeout: 1)
XCTAssertEqual(flagApplier.applyCallCount, 1)
}

func testAwaitReconciliation() async throws {
class FakeClient: XCTestCase, ConfidenceResolveClient {
var resolveStats: Int = 0
Expand All @@ -368,7 +368,7 @@ class ConfidenceTest: XCTestCase {
return .init(resolvedValues: resolvedValues, resolveToken: "token")
}
}

let client = FakeClient()
client.resolvedValues = [
ResolvedValue(
Expand All @@ -377,7 +377,7 @@ class ConfidenceTest: XCTestCase {
flag: "flag",
resolveReason: .match)
]

let confidence = Confidence.Builder(clientSecret: "test")
.withContext(initialContext: ["targeting_key": .init(string: "user2")])
.withFlagResolverClient(flagResolver: client)
Expand All @@ -388,7 +388,7 @@ class ConfidenceTest: XCTestCase {
let evaluation = confidence.getEvaluation(
key: "flag.size",
defaultValue: 0)

XCTAssertEqual(client.resolveStats, 1)
XCTAssertEqual(evaluation.value, 3)
XCTAssertNil(evaluation.errorCode)
Expand Down

0 comments on commit 5564a63

Please sign in to comment.