@rsweeten/dropbox-sync
Version:
Reusable Dropbox synchronization module with framework adapters
20 lines • 590 B
JavaScript
// Manual mock for nuxt/app module
module.exports = {
useRuntimeConfig: jest.fn().mockReturnValue({
public: {
dropboxAppKey: 'test-app-key',
appUrl: 'https://example.com'
},
dropboxAppSecret: 'test-app-secret',
dropboxRedirectUri: 'https://example.com/api/dropbox/auth/callback'
}),
useCookie: jest.fn().mockImplementation((name) => {
if (name === 'dropbox_access_token') {
return { value: 'test-access-token' }
}
if (name === 'dropbox_refresh_token') {
return { value: 'test-refresh-token' }
}
return { value: null }
})
}