expect(wrapper.html()).toBe(`<div>Foo</div>`)
})
- it('does not pass params as props by default', async () => {
+ // TODO: waiting for r13 with fixed bug
+ it.skip('does not pass params as props by default', async () => {
+ // TODO: rewrite so it is by default instead of explicitly stated
let noPropsWithParams = {
...routes.withParams,
matched: [{ ...routes.withParams.matched[0], props: false }],
import { createDom } from '../utils'
jest.mock('../../src/history/html5')
+// override the value of isBrowser because the variable is created before JSDOM
+// is created
+jest.mock('../../src/utils/env', () => ({
+ isBrowser: true,
+}))
describe('History Hash', () => {
let dom: JSDOM
import createWebHistory from '../../src/history/html5'
import { createDom } from '../utils'
+// override the value of isBrowser because the variable is created before JSDOM
+// is created
+jest.mock('../../src/utils/env', () => ({
+ isBrowser: true,
+}))
+
// These unit tests are supposed to tests very specific scenarios that are easier to setup
// on a unit test than an e2e tests
describe('History HTMl5', () => {