ImageKnife提供图片加载成功失败的事件单元测试修改

Signed-off-by: 任伟x <renwei79@h-partners.com>
This commit is contained in:
任伟x 2024-05-15 17:11:47 +08:00 committed by Madi
parent d354a52975
commit caebb3ed8d
3 changed files with 5 additions and 5 deletions

View File

@ -13,10 +13,10 @@
* limitations under the License. * limitations under the License.
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
import { ImageKnifeOption} from '../main/ets/ImageKnifeOption'; import { ImageKnifeOption } from "@ohos/imageknife"
export default function imageKnifeOptionTest() { export default function ImageKnifeOptionTest() {
describe('imageKnifeOptionTest',() => { describe('ImageKnifeOptionTest',() => {
// Defines a test suite. Two parameters are supported: test suite name and test suite function. // Defines a test suite. Two parameters are supported: test suite name and test suite function.
beforeAll(() => { beforeAll(() => {
// Presets an action, which is performed only once before all test cases of the test suite start. // Presets an action, which is performed only once before all test cases of the test suite start.

View File

@ -14,10 +14,12 @@
*/ */
import DefaultJobQueueTest from './DefaultJobQueueTest.test'; import DefaultJobQueueTest from './DefaultJobQueueTest.test';
import FileLruCacheTest from './FileLruCache.test'; import FileLruCacheTest from './FileLruCache.test';
import ImageKnifeOptionTest from './ImageKnifeOption.test';
import MemoryLruCacheTest from './MemoryLruCache.test'; import MemoryLruCacheTest from './MemoryLruCache.test';
export default function testsuite() { export default function testsuite() {
MemoryLruCacheTest(); MemoryLruCacheTest();
FileLruCacheTest(); FileLruCacheTest();
DefaultJobQueueTest(); DefaultJobQueueTest();
ImageKnifeOptionTest();
} }

View File

@ -1,7 +1,5 @@
import imageKnifeOptionTest from './ImageKnifeOption.test';
import localUnitTest from './LocalUnit.test'; import localUnitTest from './LocalUnit.test';
export default function testsuite() { export default function testsuite() {
localUnitTest(); localUnitTest();
imageKnifeOptionTest();
} }