rsnext/test/integration/client-navigation/pages/url-prop-override.js
JJ Kasper 7d0919a784 Break up basic test suite (#6730)
* Break out client-navigation and rendering
test from basic test

* Try with parallelism dialed back to 3

* Update jest-junit for more compatible timings in CircleCI

* Bump to test timings

* Use filepath for suitename in jest-junit

* Store reports as artifacts

* Try using classname for timings

* Bump

* Remove reports from artifacts
2019-03-20 11:01:32 +01:00

16 lines
406 B
JavaScript

import React from 'react'
export default class extends React.Component {
static getInitialProps () {
return {
url: 'test' // This gets overridden by Next in lib/_app.js
}
}
render () {
const { url } = this.props
return <div>
<p id='pathname'>{url.pathname}</p>
<p id='query'>{Object.keys(url.query).length}</p>
<p id='aspath'>{url.asPath}</p>
</div>
}
}