1+ import { ForbiddenException } from '@nestjs/common/exceptions/forbidden.exception' ;
12import { expect } from 'chai' ;
23import * as sinon from 'sinon' ;
3- import { RouteParamMetadata , HttpStatus } from '../../../common' ;
4+ import { HttpStatus , RouteParamMetadata } from '../../../common' ;
45import { CUSTOM_ROUTE_AGRS_METADATA } from '../../../common/constants' ;
56import { RouteParamtypes } from '../../../common/enums/route-paramtypes.enum' ;
67import { AbstractHttpAdapter } from '../../adapters' ;
78import { ApplicationConfig } from '../../application-config' ;
9+ import { FORBIDDEN_MESSAGE } from '../../guards/constants' ;
810import { GuardsConsumer } from '../../guards/guards-consumer' ;
911import { GuardsContextCreator } from '../../guards/guards-context-creator' ;
1012import { NestContainer } from '../../injector/container' ;
@@ -15,8 +17,6 @@ import { PipesContextCreator } from '../../pipes/pipes-context-creator';
1517import { RouteParamsFactory } from '../../router/route-params-factory' ;
1618import { RouterExecutionContext } from '../../router/router-execution-context' ;
1719import { NoopHttpAdapter } from '../utils/noop-adapter.spec' ;
18- import { FORBIDDEN_MESSAGE } from '../../guards/constants' ;
19- import { ForbiddenException } from '@nestjs/common/exceptions/forbidden.exception' ;
2020
2121describe ( 'RouterExecutionContext' , ( ) => {
2222 let contextCreator : RouterExecutionContext ;
@@ -390,7 +390,7 @@ describe('RouterExecutionContext', () => {
390390 } ) ;
391391
392392 describe ( 'when "redirectResponse" is undefined' , ( ) => {
393- it ( 'should not call "res.redirect()"' , ( ) => {
393+ it ( 'should not call "res.redirect()"' , async ( ) => {
394394 const result = Promise . resolve ( 'test' ) ;
395395 const response = { redirect : sinon . spy ( ) } ;
396396
0 commit comments