Skip to content

Commit

Permalink
test disabled textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
tib committed Mar 9, 2022
1 parent 63330b9 commit 2dcfe16
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Tests/SwiftHtmlTests/Tags/TextareaTagTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// File.swift
//
//
// Created by Tibor Bodecs on 2022. 03. 09..
//

import XCTest
@testable import SwiftHtml

final class TextareaTagTests: XCTestCase {

func testDisabledTextarea() {

let doc = Document {
Textarea()
.disabled()
}
XCTAssertEqual(DocumentRenderer(minify: true).render(doc), #"<textarea disabled></textarea>"#)
}

}

0 comments on commit 2dcfe16

Please sign in to comment.