1- import * as sinon from 'sinon' ;
21import { expect } from 'chai' ;
32import { ExecutionContextHost } from '../../helpers/execution-context-host' ;
43
@@ -18,31 +17,31 @@ describe('ExecutionContextHost', () => {
1817 } ) ;
1918
2019 describe ( 'getClass' , ( ) => {
21- it ( 'should return constructorRef' , ( ) => {
20+ it ( 'should return constructorRef' , ( ) => {
2221 expect ( contextHost . getClass ( ) ) . to . be . eql ( constructorRef ) ;
2322 } ) ;
2423 } ) ;
2524
2625 describe ( 'getHandler' , ( ) => {
27- it ( 'should return handler' , ( ) => {
26+ it ( 'should return handler' , ( ) => {
2827 expect ( contextHost . getHandler ( ) ) . to . be . eql ( callback ) ;
2928 } ) ;
3029 } ) ;
3130
3231 describe ( 'getArgs' , ( ) => {
33- it ( 'should return args' , ( ) => {
32+ it ( 'should return args' , ( ) => {
3433 expect ( contextHost . getArgs ( ) ) . to . be . eql ( args ) ;
3534 } ) ;
3635 } ) ;
3736
3837 describe ( 'getArgByIndex' , ( ) => {
39- it ( 'should return argument by index' , ( ) => {
38+ it ( 'should return argument by index' , ( ) => {
4039 expect ( contextHost . getArgByIndex ( 0 ) ) . to . be . eql ( args [ 0 ] ) ;
4140 } ) ;
4241 } ) ;
4342
4443 describe ( 'switchToRpc' , ( ) => {
45- it ( 'should return rpc proxy' , ( ) => {
44+ it ( 'should return rpc proxy' , ( ) => {
4645 const proxy = contextHost . switchToRpc ( ) ;
4746 expect ( proxy . getData ) . to . be . a ( 'function' ) ;
4847 expect ( proxy . getContext ) . to . be . a ( 'function' ) ;
@@ -52,7 +51,7 @@ describe('ExecutionContextHost', () => {
5251 } ) ;
5352
5453 describe ( 'switchToHttp' , ( ) => {
55- it ( 'should return http proxy' , ( ) => {
54+ it ( 'should return http proxy' , ( ) => {
5655 const proxy = contextHost . switchToHttp ( ) ;
5756 expect ( proxy . getRequest ) . to . be . a ( 'function' ) ;
5857 expect ( proxy . getResponse ) . to . be . a ( 'function' ) ;
@@ -64,7 +63,7 @@ describe('ExecutionContextHost', () => {
6463 } ) ;
6564
6665 describe ( 'switchToWs' , ( ) => {
67- it ( 'should return ws proxy' , ( ) => {
66+ it ( 'should return ws proxy' , ( ) => {
6867 const proxy = contextHost . switchToWs ( ) ;
6968 expect ( proxy . getData ) . to . be . a ( 'function' ) ;
7069 expect ( proxy . getClient ) . to . be . a ( 'function' ) ;
0 commit comments