問題タブ [pact-jvm]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
unit-testing - multipart/form-data アップロード cdc テスト用の PACT の作成方法
ファイル検証をアップロードするための cdc テストを作成しようとしています。私はDIUSライブラリを使用しています。DIUS で .withFileUpload() を使用する方法の例が見つかりません。私の協定のコードは次のとおりです。
協定の作成と検証のためのコード:
しかし、テストを実行すると、次のようになります: json={"error": Missing start boundary}
s wrong in my code? I suppose something wrong with Content type, with 'boundary' part. But I don
任意の境界を指定する方法を教えてください。multipart/form-data アップロード要求が実現した別のライブラリを知っている人がいるかもしれません。
ありがとう。