mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-23 11:22:11 +00:00
13 lines
244 B
JavaScript
13 lines
244 B
JavaScript
import Router from 'next/router'
|
|
|
|
Router.router = {
|
|
push: async (route) => {
|
|
console.log('Pushing router to', route)
|
|
},
|
|
replace: async () => {},
|
|
prefetch: () => {},
|
|
route: '/mock-route',
|
|
asPath: '/mock-route',
|
|
pathname: 'mock-path',
|
|
}
|