()
| 2336 | |
| 2337 | |
| 2338 | def test_toLocaleString(): |
| 2339 | prices = ["¥7", 500, 8123, 12] |
| 2340 | result = [None] |
| 2341 | pm.eval(""" |
| 2342 | (result, arr) => { |
| 2343 | result[0] = arr.toLocaleString('ja-JP', { style: 'currency', currency: 'JPY' }); |
| 2344 | } |
| 2345 | """)(result, prices) |
| 2346 | assert result[0] == '¥7,¥500,¥8,123,¥12' |
| 2347 | |
| 2348 | |
| 2349 | def test_toLocaleString_with_none(): |
nothing calls this directly
no outgoing calls
no test coverage detected