Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Sep 28, 2023
1 parent 52f0888 commit a21d304
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
dist/**
node_modules/**
*.cjs
*.mjs
*.js
8 changes: 4 additions & 4 deletions test/unit/services/fakeclient.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import {
type VideoUploadAck,
type VideoUploadPriority,
} from '@myrotvorets/facex';
import * as td from 'testdouble';
import { func } from 'testdouble';

export const uploadVideo = td.function<typeof FaceXVideoClient.prototype.uploadVideo>();
export const getVideoStatus = td.function<typeof FaceXVideoClient.prototype.getVideoStatus>();
export const getVideoResult = td.function<typeof FaceXVideoClient.prototype.getVideoResult>();
export const uploadVideo = func<typeof FaceXVideoClient.prototype.uploadVideo>();
export const getVideoStatus = func<typeof FaceXVideoClient.prototype.getVideoStatus>();
export const getVideoResult = func<typeof FaceXVideoClient.prototype.getVideoResult>();

export class FakeFaceXVideoClient extends FaceXVideoClient {
public uploadVideo(video: VideoType, priority?: VideoUploadPriority): Promise<VideoUploadAck> {
Expand Down

0 comments on commit a21d304

Please sign in to comment.