Skip to content

Commit

Permalink
feature: implement fakeable
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOF committed Nov 8, 2023
1 parent 3c836a0 commit f017c79
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ var package = Package(
.library(
name: "SabyTestMock",
targets: ["SabyTestMock"]),
.library(
name: "SabyTestFake",
targets: ["SabyTestFake"]),
.library(
name: "SabyTestWait",
targets: ["SabyTestWait"]),
Expand Down Expand Up @@ -72,6 +75,10 @@ var package = Package(
name: "SabyTestMock",
dependencies: ["SabyConcurrency", "SabyJSON"],
path: "Source/TestMock"),
.target(
name: "SabyTestFake",
dependencies: [],
path: "Source/TestFake"),
.target(
name: "SabyNetwork",
dependencies: ["SabyConcurrency", "SabyJSON", "SabySafe"],
Expand Down
12 changes: 12 additions & 0 deletions Source/TestFake/Fakeable.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Fakeable.swift
// SabyTestFake
//
// Created by WOF on 11/8/23.
//

import Foundation

public protocol Fakeable {
static func fake() -> Self
}

0 comments on commit f017c79

Please sign in to comment.