         XCTAssertEqual(form.passwordErrors.count, 0)
         XCTAssertEqual(form.repeatPasswordErrors.count, 2)
         XCTAssert(form.repeatPassword.isEmpty)
-        XCTAssertEqual(form.password, "test")
+        XCTAssertEqual(form.password, "testtest")
     }
 
     func testPasswordsDoNotMatch() {

            role: nil,
            shouldResetPassword: nil,
            sendEmail: nil,
            password: "test",
            repeatPassword: nil
        )


import Vapor
import XCTest

@testable import AdminPanel

class BackendUserTests: XCTestCase {
    func testSendEmail() {
        let content = Content()
        content.append(Node(["sendEmail": "true"]))
        let (form, _) = BackendUserForm.validating(content)
        XCTAssertTrue(form.sendMail)
    }

