Skip to content

Commit b7b24fe

Browse files
author
kamil.mysliwiec
committed
quick fix
1 parent bc707b2 commit b7b24fe

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const messages = {
22
APPLICATION_START: `Starting Nest application...`,
33
APPLICATION_READY: `Nest application is ready!`,
4-
UNKNOWN_EXCEPTION_MESSAGE: 'Unkown exception',
4+
UNKNOWN_EXCEPTION_MESSAGE: 'Unknown exception',
55
};

src/core/test/exceptions/exceptions-handler.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('ExceptionsHandler', () => {
3232
handler.next(new Error(), response);
3333

3434
expect(statusStub.calledWith(500)).to.be.true;
35-
expect(jsonStub.calledWith({ message: 'Unkown exception' })).to.be.true;
35+
expect(jsonStub.calledWith({ message: 'Unknown exception' })).to.be.true;
3636
});
3737
describe('when exception is instance of HttpException', () => {
3838
it('should method send expected response status code and json object', () => {

src/errors/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const UnknownDependenciesMessage = (type: string) =>
88
`Nest could not resolves dependencies of ${type}.`;
99

1010
export const UnknownExportMessage = (name: string) =>
11-
`You are trying to export unkown component (${name}). Remember - your component should be listed both in exports and components arrays!`;
11+
`You are trying to export unknown component (${name}). Remember - your component should be listed both in exports and components arrays!`;
1212

1313
export const INVALID_MIDDLEWARE_CONFIGURATION = `Invalid middleware configuration passed in module 'configure()' method.`;
1414
export const UNKNOWN_REQUEST_MAPPING = `Request mapping properties not defined in @RequestMapping() annotation!`;

0 commit comments

Comments
 (0)