Skip to content

Commit

Permalink
feat: make validation param shortcut public
Browse files Browse the repository at this point in the history
  • Loading branch information
r13v committed Jul 13, 2023
1 parent 7390e3c commit d1b326b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EffectorForms/Set+ValidationEvent.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extension Set where Element == ValidationEvent {
public extension Set where Element == ValidationEvent {
static let all = Set(ValidationEvent.allCases)

static let submit = Set([ValidationEvent.submit])
Expand Down
3 changes: 2 additions & 1 deletion Tests/EffectorFormsTests/FormTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -786,13 +786,14 @@ final class FieldTests: XCTestCase {
}

func testValidateManually() async throws {
let field = createField(
let extractedExpr = createField(
.init(
keyPath: \SignInForm.email,
initialValue: "",
rules: [makeEmailValidationRule()]
)
)
let field = extractedExpr

field.change("123")

Expand Down

0 comments on commit d1b326b

Please sign in to comment.