Skip to content

Commit

Permalink
Revert "Revert "rename error classes""
Browse files Browse the repository at this point in the history
This reverts commit 1483f59.
  • Loading branch information
kbariotis committed Dec 30, 2016
1 parent d1bbd53 commit da6427b
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/customError.js → lib/CustomError.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @module errors/customError
* @module errors/CustomError
* @description customError Class
*/

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/badGateway.spec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* @test lib/errors/badGateway
* @test lib/errors/BadGateway
*/

var assert = require('assert'),
errors = require('../lib');

function doSomethingMoreBad() {
throw new errors.badGateway();
throw new errors.BadGateway();
}

try {
Expand All @@ -19,7 +19,7 @@ try {
assert(err.name = 'BadGateway');

// The error should be an instance of its class
assert(err instanceof errors.badGateway);
assert(err instanceof errors.BadGateway);

// The error should be an instance of builtin Error
assert(err instanceof Error);
Expand Down
6 changes: 3 additions & 3 deletions tests/customError.spec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* @test lib/custoError
* @test lib/CustomError
*/

var assert = require('assert'),
errors = require('../lib');

function doSomethingBad() {
throw new errors.customError('customError', 'It went bad!', 400, 4000);
throw new errors.CustomError('CustomError', 'It went bad!', 400, 4000);
}

try {
Expand All @@ -19,7 +19,7 @@ try {
assert(err.name = 'CustomError');

// The error should be an instance of its class
assert(err instanceof errors.customError);
assert(err instanceof errors.CustomError);

// The error should be an instance of builtin Error
assert(err instanceof Error);
Expand Down

0 comments on commit da6427b

Please sign in to comment.