2015-09-25 12:37:33 +08:00
|
|
|
#if os(iOS) || os(tvOS)
|
2014-07-25 12:24:17 +08:00
|
|
|
import UIKit
|
2015-03-24 06:39:41 +08:00
|
|
|
typealias View = UIView
|
|
|
|
extension View {
|
2015-06-17 19:09:54 +08:00
|
|
|
var snp_constraints: [AnyObject] { return self.constraints }
|
2015-03-24 06:39:41 +08:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
import AppKit
|
|
|
|
typealias View = NSView
|
|
|
|
extension View {
|
|
|
|
var snp_constraints: [AnyObject] { return self.constraints }
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-06-06 11:42:44 +08:00
|
|
|
import XCTest
|
2015-04-15 19:07:50 +08:00
|
|
|
import SnapKit
|
2014-06-06 11:42:44 +08:00
|
|
|
|
2015-04-15 19:07:50 +08:00
|
|
|
class SnapKitTests: XCTestCase {
|
2014-06-06 11:42:44 +08:00
|
|
|
|
2015-03-24 06:39:41 +08:00
|
|
|
let container = View()
|
2015-02-14 18:37:27 +08:00
|
|
|
|
2014-06-06 11:42:44 +08:00
|
|
|
override func setUp() {
|
|
|
|
super.setUp()
|
|
|
|
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
|
|
}
|
|
|
|
|
|
|
|
override func tearDown() {
|
|
|
|
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
|
|
super.tearDown()
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|