Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit ff77472

Browse files
committed
Merge pull request #106 from kjbekkelund/additional-basename-test
Add pushState test for basename
2 parents 040950c + 26b3d5c commit ff77472

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/createTests.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,14 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
618618
replace: false,
619619
state: undefined
620620
})
621+
622+
history.pushState(undefined, '/baz');
623+
expect(store).toContainRoute({
624+
path: '/baz',
625+
changeId: 2,
626+
replace: false,
627+
state: undefined
628+
})
621629
})
622630
})
623631
}

0 commit comments

Comments
 (0)