<commit_before>//
//  ImageComponentSnapshotTests.swift
//  TheodoliteTests
//
//  Created by <NAME> on 10/30/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit

import FBSnapshotTestCase
@testable import Theodolite

class ImageComponentSnapshotTests: FBSnapshotTestCase {
  override func setUp() {
    super.setUp()
    recordMode = true
  }

  func test_normalRenderingWithColor() {
    snapshotTestComponent(self, CGSize(width: 100, height: 100), #function) {() -> Component in
      let image = ImageFrom(color: UIColor.blue, size: CGSize(width: 100, height: 100))
      return ImageComponent {
        (image,
         size: CGSize(width: 100, height: 100),
         options: ViewOptions())
      }
    }
  }<commit_msg>whoops, fix record mode in image component<commit_after>//
//  ImageComponentSnapshotTests.swift
//  TheodoliteTests
//
//  Created by <NAME> on 10/30/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit

import FBSnapshotTestCase
@testable import Theodolite

class ImageComponentSnapshotTests: FBSnapshotTestCase {
  override func setUp() {
    super.setUp()
    recordMode = false
  }

  func test_normalRenderingWithColor() {
    snapshotTestComponent(self, CGSize(width: 100, height: 100), #function) {() -> Component in
      let image = ImageFrom(color: UIColor.blue, size: CGSize(width: 100, height: 100))
      return ImageComponent {
        (image,
         size: CGSize(width: 100, height: 100),
         options: ViewOptions())
      }
    }
  }
{'fraction_non_alphanumeric': 0.11381578947368422, 'fraction_numerical': 0.03684210526315789, 'mean_word_length': 3.2367688022284122, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6123739', 'n_tokens_mistral': 519, 'n_tokens_neox': 455, 'n_words': 126}