Skip to content

Commit

Permalink
Changes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Jul 13, 2016
1 parent 9c8ae4d commit e2dcdc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/check-url-status-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ tap.test('Returns error as expected', function (test) {
})

tap.test('Returns expected status code for https', function (test) {
const url = 'https://google.com'
const url = 'https://www.npmjs.com'
checkUrlStatus(url, (error, statusCode) => {
if (error) {
throw error
}
tap.equal(statusCode, 302, '302 OK')
tap.equal(statusCode, 200, '200 OK')
test.done()
})
})

tap.test('Returns expected status code for http', function (test) {
const url = 'http://google.com'
const url = 'http://www.npmjs.com'
checkUrlStatus(url, (error, statusCode) => {
if (error) {
throw error
}
tap.equal(statusCode, 302, '302 OK')
tap.equal(statusCode, 301, '301 OK')
test.done()
})
})

0 comments on commit e2dcdc2

Please sign in to comment.