Skip to content

Commit

Permalink
Fix test errors for reals this time
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed Jul 27, 2017
1 parent d4d7b15 commit b7870ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/http/__tests__/short_url_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import { handleShortUrlError } from '../short_url_error';
function createErrorWithStatus(status) {
const error = new Error();
error.status = status;
return error;
}

function createErrorWithStatusCode(statusCode) {
const error = new Error();
error.statusCode = statusCode;
return error;
}

describe('handleShortUrlError()', () => {
Expand Down

0 comments on commit b7870ab

Please sign in to comment.