`MutableFeatureFlagStoreMock`
* Renamed `MutableFeatureFlagStore` in tests to `MutableFeatureFlagStoreMock` * Updated `MutableStoreTests`
This commit is contained in:
parent
01ed3d5759
commit
9398a9a1b0
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// MutableFeatureFlagStore.swift
|
||||
// MutableFeatureFlagStoreMock.swift
|
||||
// YMFF
|
||||
//
|
||||
// Created by Yakov Manshin on 5/30/21.
|
||||
|
@ -11,7 +11,7 @@ import YMFF
|
|||
import YMFFProtocols
|
||||
#endif
|
||||
|
||||
final class MutableFeatureFlagStore: MutableFeatureFlagStoreProtocol {
|
||||
final class MutableFeatureFlagStoreMock: MutableFeatureFlagStoreProtocol {
|
||||
|
||||
private var store: TransparentFeatureFlagStore
|
||||
private var onSaveChangesClosure: () -> Void
|
|
@ -21,7 +21,7 @@ final class MutableStoreTests: XCTestCase {
|
|||
override func setUp() {
|
||||
super.setUp()
|
||||
|
||||
mutableStore = MutableFeatureFlagStore(store: .init())
|
||||
mutableStore = MutableFeatureFlagStoreMock(store: .init())
|
||||
resolver = FeatureFlagResolver(stores: [.mutable(mutableStore)])
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ final class MutableStoreTests: XCTestCase {
|
|||
func testChangeSaving() {
|
||||
var saveChangesCount = 0
|
||||
|
||||
mutableStore = MutableFeatureFlagStore(store: .init()) {
|
||||
mutableStore = MutableFeatureFlagStoreMock(store: .init()) {
|
||||
saveChangesCount += 1
|
||||
}
|
||||
resolver = FeatureFlagResolver(stores: [.mutable(mutableStore)])
|
||||
|
|
Loading…
Reference in New Issue