1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/tests/unit/__mocks__/nextRouter.js
2020-05-07 09:03:30 +03:00

25 lines
404 B
JavaScript

const Router = require('next/router')
Router.router = {
push: () => null,
prefetch: () => null,
asPath: '/hello',
events: {
on: () => null,
off: () => null
},
useRouter: () => {
return {
push: () => null,
prefetch: () => null,
asPath: '/hello',
events: {
on: () => null,
off: () => null
}
}
}
}
module.exports = Router.router