Mercurial > hg > nginx-tests
comparison js_promise.t @ 1776:f89770df737a
Tests: removed njs version checks older than 0.6.0.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Wed, 13 Jul 2022 14:55:55 -0700 |
parents | 18ac4d9e5a2a |
children | 386748f328b1 |
comparison
equal
deleted
inserted
replaced
1775:eacfd2b64b71 | 1776:f89770df737a |
---|---|
194 ############################################################################### | 194 ############################################################################### |
195 | 195 |
196 like(http_get('/promise'), qr/{"token": "b"}/, "Promise"); | 196 like(http_get('/promise'), qr/{"token": "b"}/, "Promise"); |
197 like(http_get('/promise_throw'), qr/{"token": "x"}/, "Promise throw and catch"); | 197 like(http_get('/promise_throw'), qr/{"token": "x"}/, "Promise throw and catch"); |
198 like(http_get('/timeout'), qr/{"token": "R"}/, "Promise with timeout"); | 198 like(http_get('/timeout'), qr/{"token": "R"}/, "Promise with timeout"); |
199 | |
200 TODO: { | |
201 local $TODO = 'not yet' | |
202 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; | |
203 | |
204 like(http_get('/promise_pure'), qr/200 OK/, "events handling"); | 199 like(http_get('/promise_pure'), qr/200 OK/, "events handling"); |
205 } | 200 |
206 | 201 ############################################################################### |
207 $t->todo_alerts() unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; | |
208 | |
209 ############################################################################### |