Skip to content

Commit fa3ea7a

Browse files
committed
Restore skipping tests that got re-enabled in moving files
1 parent f20d5a0 commit fa3ea7a

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

Tests/AztecTests/Extensions/UIImageResizeTests.swift

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,15 @@ import XCTest
22
@testable import Aztec
33

44
class UIImageResizeTests: XCTestCase {
5-
6-
override func setUp() {
7-
super.setUp()
8-
// Put setup code here. This method is called before the invocation of each test method in the class.
9-
}
10-
11-
override func tearDown() {
12-
// Put teardown code here. This method is called after the invocation of each test method in the class.
13-
super.tearDown()
14-
}
15-
16-
func testResizingImageWorks() {
17-
let bundle = Bundle.aztecTestsBundle
18-
5+
6+
let bundle = Bundle.aztecTestsBundle
7+
8+
func testResizingImageWorks() throws {
9+
// See also:
10+
// - https://github.com/wordpress-mobile/AztecEditor-iOS/pull/1233#issuecomment-553202740
11+
// - https://github.com/wordpress-mobile/AztecEditor-iOS/pull/1235
12+
try XCTSkipIf(true, "Testing image resizing has proven fiddly. Skipping for now.")
13+
1914
guard let image = UIImage(named: "aztec", in: bundle, compatibleWith: nil) else {
2015
XCTFail()
2116
return
@@ -51,9 +46,12 @@ class UIImageResizeTests: XCTestCase {
5146
XCTAssertEqual(resizedPNGRepresentation, expectedPNGRepresentation)
5247
}
5348

54-
func testResizingImageWorks2() {
55-
let bundle = Bundle.aztecTestsBundle
56-
49+
func testResizingImageWorks2() throws {
50+
// See also:
51+
// - https://github.com/wordpress-mobile/AztecEditor-iOS/pull/1233#issuecomment-553202740
52+
// - https://github.com/wordpress-mobile/AztecEditor-iOS/pull/1235
53+
try XCTSkipIf(true, "Testing image resizing has proven fiddly. Skipping for now.")
54+
5755
guard let image = UIImage(named: "aztec", in: bundle, compatibleWith: nil) else {
5856
XCTFail()
5957
return

0 commit comments

Comments
 (0)