Skip to content

Commit 03c2424

Browse files
committed
fix: old toast system used in tests
1 parent e2e5bf7 commit 03c2424

4 files changed

Lines changed: 3 additions & 116 deletions

File tree

resources/js/service/player/frameService.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { describe, it, vi, expect, beforeEach } from 'vitest';
22
import { saveVideoFrame, copyVideoFrame } from './frameService';
3-
import { toast } from '../toaster/toastService';
3+
import { toast } from '@aminnausin/cedar-ui';
44

5-
vi.mock('../toaster/toastService', () => ({
5+
vi.mock('@aminnausin/cedar-ui', () => ({
66
toast: {
77
success: vi.fn(),
88
error: vi.fn(),

resources/js/service/player/frameService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toast } from '../toaster/toastService';
1+
import { toast } from '@aminnausin/cedar-ui';
22

33
export async function saveVideoFrame(video: HTMLVideoElement) {
44
const blob = await getVideoFrame(video);

resources/js/service/toaster/component.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/js/service/toaster/toastService.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)