mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-21 05:20:06 -06:00
Clean up Jest and Maestro Folders Reduction of the number of calls being made by components Fix issue where a different track would display than the one that is currently playing Update OTA dependency to fix an issue on iOS
33 lines
666 B
TypeScript
33 lines
666 B
TypeScript
import {
|
|
ListTemplateConfig,
|
|
NowPlayingTemplateConfig,
|
|
TabBarTemplateConfig,
|
|
} from 'react-native-carplay'
|
|
|
|
jest.mock('react-native-carplay', () => {
|
|
return {
|
|
ListTemplate: class {
|
|
config: ListTemplateConfig
|
|
|
|
constructor(config: ListTemplateConfig) {
|
|
this.config = config
|
|
}
|
|
},
|
|
NowPlayingTemplate: class {
|
|
config: NowPlayingTemplateConfig
|
|
|
|
constructor(config: NowPlayingTemplateConfig) {
|
|
this.config = config
|
|
}
|
|
},
|
|
TabBarTemplate: class {
|
|
config: TabBarTemplateConfig
|
|
|
|
constructor(config: TabBarTemplateConfig) {
|
|
this.config = config
|
|
}
|
|
},
|
|
checkForConnection: jest.fn(), // if needed as a named export too
|
|
}
|
|
})
|