diff options
Diffstat (limited to 'history/modules/__tests__/TestSequences/PushUnicodeLocation.js')
-rw-r--r-- | history/modules/__tests__/TestSequences/PushUnicodeLocation.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/history/modules/__tests__/TestSequences/PushUnicodeLocation.js b/history/modules/__tests__/TestSequences/PushUnicodeLocation.js new file mode 100644 index 0000000..2bad464 --- /dev/null +++ b/history/modules/__tests__/TestSequences/PushUnicodeLocation.js @@ -0,0 +1,28 @@ +import expect from 'expect'; + +import execSteps from './execSteps.js'; + +export default function(history, done) { + const steps = [ + location => { + expect(location).toMatchObject({ + pathname: '/' + }); + + const pathname = '/歴史'; + const search = '?キー=値'; + const hash = '#ハッシュ'; + history.push(pathname + search + hash); + }, + (location, action) => { + expect(action).toBe('PUSH'); + expect(location).toMatchObject({ + pathname: '/歴史', + search: '?キー=値', + hash: '#ハッシュ' + }); + } + ]; + + execSteps(steps, history, done); +} |