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 25, 2017
1 parent d4d7b15 commit a509e00
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 status;
}

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

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

0 comments on commit a509e00

Please sign in to comment.