1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00
market/tests/unit/__mocks__/nextRouter.js

25 lines
404 B
JavaScript
Raw Normal View History

2020-05-07 08:03:30 +02:00
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