Mercurial > hg > nginx-tests
comparison js.t @ 1626:a35445ae8de7
Tests: adapted js buffer tests to renaming vars to rawVariables.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Thu, 26 Nov 2020 11:29:53 +0000 |
parents | a140cab489e8 |
children | 456bf219d768 |
comparison
equal
deleted
inserted
replaced
1625:a140cab489e8 | 1626:a35445ae8de7 |
---|---|
305 local $TODO = 'not yet' | 305 local $TODO = 'not yet' |
306 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; | 306 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; |
307 | 307 |
308 like(http_get('/type?path=variables.host'), qr/200 OK.*type: string$/s, | 308 like(http_get('/type?path=variables.host'), qr/200 OK.*type: string$/s, |
309 'variables type'); | 309 'variables type'); |
310 like(http_get('/type?path=vars.host'), qr/200 OK.*type: buffer$/s, | 310 like(http_get('/type?path=rawVariables.host'), qr/200 OK.*type: buffer$/s, |
311 'vars type'); | 311 'rawVariables type'); |
312 | 312 |
313 like(http_post('/type?path=requestBody'), qr/200 OK.*type: string$/s, | 313 like(http_post('/type?path=requestBody'), qr/200 OK.*type: string$/s, |
314 'requestBody type'); | 314 'requestBody type'); |
315 like(http_post('/type?path=reqBody'), qr/200 OK.*type: buffer$/s, | 315 like(http_post('/type?path=reqBody'), qr/200 OK.*type: buffer$/s, |
316 'reqBody type'); | 316 'reqBody type'); |