 //
 
 import XCTest
-import Nimble
 @testable import ForecastIO
 
 class AlertTests: XCTestCase {

        let alert = Alert(fromJSON: alertJSON)
        
        //  Then
        expect(alert).toNot(beNil())
        expect(alert.title).to(equal("High Wind Warning for Baltimore, MD"))
        expect(alert.expires).to(equal(Date(timeIntervalSince1970: 1453593600)))
        expect(alert.uri.absoluteString).to(equal("http://alerts.weather.gov/cap/wwacapget.php?x=MD1255E4FAA7AC.HighWindWarning.1255E5079700MD.LWXNPWLWX.b0aa96f59630770f05e80c219b873fd2"))
        expect(alert.description).to(equal("...HIGH WIND WARNING REMAINS IN EFFECT UNTIL 7 PM EST THIS\nEVENING...\n* TIMING...THROUGH TODAY.\n* WINDS...NORTH 25 TO 35 MPH WITH GUSTS UP TO 55 MPH.\n* IMPACTS...DOWNED TREES...POWERLINES...AND MINOR STRUCTURAL\nDAMAGE. DRIVING HIGH PROFILE VEHICLES IN THESE CONDITIONS IS\nDANGEROUS.\n"))
    }
    
    func testInitNoOptionalsFromJSON() {

        let alert = Alert(fromJSON: alertJSON)
        
        //  Then
        XCTAssertNotNil(alert)
        XCTAssertEqual(alert.title, "High Wind Warning for Baltimore, MD")
        XCTAssertEqual(alert.expires, Date(timeIntervalSince1970: 1453593600))
        XCTAssertEqual(alert.uri.absoluteString, "http://alerts.weather.gov/cap/wwacapget.php?x=MD1255E4FAA7AC.HighWindWarning.1255E5079700MD.LWXNPWLWX.b0aa96f59630770f05e80c219b873fd2")
        XCTAssertNil(alert.description)
    }
}
