31 lines
665 B
JSON
31 lines
665 B
JSON
|
|
{
|
||
|
|
"id": "async_extract_bytes",
|
||
|
|
"category": "async",
|
||
|
|
"description": "Async extract_bytes call on PDF document",
|
||
|
|
"tags": ["async", "api", "extract_bytes"],
|
||
|
|
"call": "extract_bytes",
|
||
|
|
"skip": {
|
||
|
|
"languages": ["wasm"],
|
||
|
|
"reason": "WASM uses synchronous-only API; async extraction is not available on the wasm target"
|
||
|
|
},
|
||
|
|
"input": {
|
||
|
|
"data": "pdf/fake_memo.pdf",
|
||
|
|
"mime_type": "application/pdf"
|
||
|
|
},
|
||
|
|
"assertions": [
|
||
|
|
{
|
||
|
|
"type": "not_error"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "equals",
|
||
|
|
"field": "mime_type",
|
||
|
|
"value": "application/pdf"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "min_length",
|
||
|
|
"field": "content",
|
||
|
|
"value": 50
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|