@@ -68,32 +68,6 @@ function getMocks () {
68
68
test . beforeEach ( tools . stubConsole ) ;
69
69
test . afterEach . always ( tools . restoreConsole ) ;
70
70
71
- test . serial ( `http:helloworld: should error with no message` , ( t ) => {
72
- const mocks = getMocks ( ) ;
73
- const httpSample = getSample ( ) ;
74
- mocks . req . body = { } ;
75
- httpSample . sample . helloWorld ( mocks . req , mocks . res ) ;
76
-
77
- t . true ( mocks . res . status . calledOnce ) ;
78
- t . is ( mocks . res . status . firstCall . args [ 0 ] , 400 ) ;
79
- t . true ( mocks . res . send . calledOnce ) ;
80
- t . is ( mocks . res . send . firstCall . args [ 0 ] , `No message defined!` ) ;
81
- } ) ;
82
-
83
- test . serial ( `http:helloworld: should log message` , ( t ) => {
84
- const mocks = getMocks ( ) ;
85
- const httpSample = getSample ( ) ;
86
- mocks . req . body = {
87
- message : `hi`
88
- } ;
89
- httpSample . sample . helloWorld ( mocks . req , mocks . res ) ;
90
-
91
- t . true ( mocks . res . status . calledOnce ) ;
92
- t . is ( mocks . res . status . firstCall . args [ 0 ] , 200 ) ;
93
- t . true ( mocks . res . end . calledOnce ) ;
94
- t . true ( console . log . calledWith ( `hi` ) ) ;
95
- } ) ;
96
-
97
71
test . serial ( `http:helloHttp: should handle GET` , ( t ) => {
98
72
const mocks = getMocks ( ) ;
99
73
const httpSample = getSample ( ) ;
0 commit comments