diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js index 6951f49876bb9bed422a349828eacb159cee70dc..3286b5b1397b9de1f09e93c1679919659c2b129d 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js @@ -350,7 +350,6 @@ describe('AudioEncoderFuncCallback', function () { } } else{ - writeHead(savepath, outputobject.length); writeFile(savepath, outputobject.data, outputobject.length); console.info("write to file success"); } diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js index c7ba66cce97a02bd1cf1f5b37e0a18f18c1061a0..478f5c05b64efbf326af6886282579d9e042c18f 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js @@ -354,7 +354,6 @@ describe('AudioEncoderFuncPromise', function () { } } else{ - writeHead(savepath, outputobject.length); writeFile(savepath, outputobject.data, outputobject.length); console.info("write to file success"); } diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js index 3a110986a0f10500865b3dce46e0b68731e78ac7..60b79b0b44acd6d6446797081217900edb2dc938 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js @@ -17,7 +17,7 @@ import media from '@ohos.multimedia.media' import Fileio from '@ohos.fileio' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' -describe('AudioEncoderFuncPromise', function () { +describe('AudioEncoderMultiInstances', function () { const RESOURCEPATH = '/data/accounts/account_0/appdata/ohos.acts.multimedia.audio.audioencoder/' const AUDIOPATH = RESOURCEPATH + 'S16LE.pcm'; let readStreamSync; @@ -246,7 +246,6 @@ describe('AudioEncoderFuncPromise', function () { } } else{ - writeHead(savepath, outputobject.length); writeFile(savepath, outputobject.data, outputobject.length); console.info("write to file success"); }