Fix trailing whitespaces (#3205)
See https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#trailing-whitespace
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
if (!self) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
||||
self.testStatus = NO;
|
||||
self.runner = new TestRunner();
|
||||
NSError *error;
|
||||
@@ -39,10 +39,10 @@
|
||||
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
||||
NSString *documentsDir = [paths objectAtIndex: 0];
|
||||
|
||||
|
||||
NSString *destinationPath = [documentsDir stringByAppendingPathComponent: @"test-data"];
|
||||
NSString *path = destinationPath;
|
||||
|
||||
|
||||
// delete destinationPath if it exists
|
||||
if ([fileManager fileExistsAtPath:destinationPath]) {
|
||||
success = [fileManager removeItemAtPath: destinationPath error: &error];
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
}
|
||||
|
||||
- (void)testStartRenderTestRunner {
|
||||
IosTestRunner* runner = [[IosTestRunner alloc] init];
|
||||
IosTestRunner* runner = [[IosTestRunner alloc] init];
|
||||
XCTAssert(runner, @"IOSTestRunner is not initialized correctly");
|
||||
|
||||
NSString* styleResult = [runner getStyleResultPath];
|
||||
XCTAssert(styleResult, @"IOSTestRunner does not produce a style test result file");
|
||||
NSString* metricResult = [runner getMetricResultPath];
|
||||
XCTAssert(metricResult, @"IOSTestRunner does not produce a metric test result file");
|
||||
|
||||
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
BOOL fileFound = [fileManager fileExistsAtPath: styleResult];
|
||||
XCTAssert(fileFound, @"Test result html '%@' does not exit", styleResult);
|
||||
|
||||
Reference in New Issue
Block a user