feat(editor): Migrate debounce mixin to useDebounce composable (no-changelog) (#8244)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { vi, describe, it, expect } from 'vitest';
|
||||
import { useDebounceHelper } from '../useDebounce';
|
||||
import { useDebounce } from '../useDebounce';
|
||||
import { render, screen } from '@testing-library/vue';
|
||||
|
||||
describe('useDebounceHelper', () => {
|
||||
describe('useDebounce()', () => {
|
||||
const debounceTime = 500;
|
||||
|
||||
const TestComponent = {
|
||||
@@ -24,7 +24,7 @@ describe('useDebounceHelper', () => {
|
||||
},
|
||||
setup() {
|
||||
vitest.useFakeTimers();
|
||||
const { callDebounced } = useDebounceHelper();
|
||||
const { callDebounced } = useDebounce();
|
||||
return {
|
||||
callDebounced,
|
||||
debounceTime,
|
||||
|
||||
Reference in New Issue
Block a user