Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWoWander committed May 25, 2021
1 parent a009e7e commit 5a42a55
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Tests/DownTests/Styler/ImageStyleTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// ImageStyleTests.swift
//
//
// Created by Mikhail Ivanov on 25.05.2021.
//

#if os(iOS)

class ImageStyleTests: StylerTestSuite {

/// # Important
///
/// Snapshot tests must be run on the same simulator used to record the reference snapshots, otherwise
/// the comparison may fail. These tests were recorded on the **iPhone 12** simulator.
///

func testThat_Image_IsStyled() {
// Given
let markdown = """
Checking the loading of the image: ![cat](https://stihi.ru/pics/2021/01/23/1043.jpg)
"""

// Then
assertStyle(for: markdown, width: .narrow)
}

}

#endif

0 comments on commit 5a42a55

Please sign in to comment.