We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f967aa commit d223053Copy full SHA for d223053
__mocks__/react-native-track-player.ts
@@ -46,11 +46,11 @@ export const testApi = {
46
setPlaybackState: (state: State) => {
47
playbackState = state;
48
},
49
- setPosition: (seconds: number) => {
50
- position = seconds;
+ setPosition: (sec: number) => {
+ position = sec;
51
52
- setDuration: (seconds: number) => {
53
- duration = seconds;
+ setDuration: (sec: number) => {
+ duration = sec;
54
55
advance: (ms: number) => {
56
position = Math.min(duration, position + ms / 1000);
0 commit comments