@@ -9,13 +9,13 @@ final class ResourceComparatorCompareGroupsTests: XCTestCase {
99
1010 func testCompareBetaGroups( ) {
1111 let localBetaGroups = [
12- generateGroup ( id: nil , name: " group to create " , publicLinkEnabled: true ) ,
13- generateGroup ( id: " 1002 " , name: " group to update " , publicLinkEnabled: false ) ,
12+ BetaGroup ( id: nil , name: " group to create " , publicLinkEnabled: true ) ,
13+ BetaGroup ( id: " 1002 " , name: " group to update " , publicLinkEnabled: false ) ,
1414 ]
1515
1616 let serverBetaGroups = [
17- generateGroup ( id: " 1002 " , name: " group to update " , publicLinkEnabled: true ) ,
18- generateGroup ( id: " 1003 " , name: " group to delete " , publicLinkEnabled: true ) ,
17+ BetaGroup ( id: " 1002 " , name: " group to update " , publicLinkEnabled: true ) ,
18+ BetaGroup ( id: " 1003 " , name: " group to delete " , publicLinkEnabled: true ) ,
1919 ]
2020
2121 let strategies = SyncResourceComparator (
@@ -39,13 +39,16 @@ final class ResourceComparatorCompareGroupsTests: XCTestCase {
3939 } ) )
4040 }
4141
42- private func generateGroup(
42+ }
43+
44+ private extension BetaGroup {
45+ init (
4346 id: String ? ,
4447 name: String ,
4548 publicLinkEnabled: Bool = true ,
4649 publicLinkLimitEnabled: Bool = true
47- ) -> BetaGroup {
48- BetaGroup (
50+ ) {
51+ self = BetaGroup (
4952 id: id,
5053 groupName: name,
5154 isInternal: true ,
@@ -57,5 +60,4 @@ final class ResourceComparatorCompareGroupsTests: XCTestCase {
5760 testers: [ ]
5861 )
5962 }
60-
6163}
0 commit comments