'use strict';

var ziptastic = require('../'),
    expect    = require('chai').expect;

describe('Ziptastic — Integration Tests', function() {

	it('fetches a ZIP code', function() {
		return expect(ziptastic(10009))
			.to.eventually.deep.equal({
				city: 'New York City',
				state: 'New York',
				country: 'US'
			});
	});

	it('handles server errors', function() {
		return expect(ziptastic(100))
			.to.eventually.be.rejectedWith(/Request/);
	});

});
@@ -276,43 +276,116 @@
 %09%09%09%09
-state: 'New York',%0A%09%09%09%09country: 'US
+country: 'US',%0A%09%09%09%09county: 'New York',%0A%09%09%09%09state: 'New York',%0A%09%09%09%09state_short: 'NY',%0A%09%09%09%09postal_code: '10009
 '%0A%09%09
@@ -524,8 +524,9 @@
 %7D);%0A%0A%7D);
+%0A

Update integration tests for new properties (county, state_short, postatal_code)