-
Notifications
You must be signed in to change notification settings - Fork 959
Remove location pathname decoding #656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
11bde7a
4a8985b
561a688
8081f7a
5aaff69
bfdb5fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{ | ||
"esm/history.js": { | ||
"bundled": 28364, | ||
"minified": 12515, | ||
"gzipped": 3683, | ||
"bundled": 28234, | ||
"minified": 12465, | ||
"gzipped": 3635, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 208, | ||
"import_statements": 132 | ||
"code": 226, | ||
"import_statements": 150 | ||
}, | ||
"webpack": { | ||
"code": 1324 | ||
"code": 1375 | ||
} | ||
} | ||
}, | ||
"umd/history.js": { | ||
"bundled": 33174, | ||
"minified": 12021, | ||
"gzipped": 3992 | ||
"bundled": 34665, | ||
"minified": 12190, | ||
"gzipped": 4109 | ||
}, | ||
"umd/history.min.js": { | ||
"bundled": 30690, | ||
"minified": 10155, | ||
"gzipped": 3616 | ||
"bundled": 32227, | ||
"minified": 10251, | ||
"gzipped": 3675 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,24 +57,18 @@ describe('a browser history', () => { | |
}); | ||
}); | ||
|
||
describe('push with a unicode path string', () => { | ||
it('creates a location with decoded properties', done => { | ||
TestSequences.PushUnicodeLocation(history, done); | ||
describe('push with a non-encoded path string', () => { | ||
it('logs a warning', done => { | ||
TestSequences.WarnsForNonencodedPathname(history, done); | ||
}); | ||
}); | ||
|
||
describe('push with an encoded path string', () => { | ||
it('creates a location object with decoded pathname', done => { | ||
it('creates a location object with encoded pathname', done => { | ||
TestSequences.PushEncodedLocation(history, done); | ||
}); | ||
}); | ||
|
||
describe('push with an invalid path string (bad percent-encoding)', () => { | ||
it('throws an error', done => { | ||
TestSequences.PushInvalidPathname(history, done); | ||
}); | ||
}); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test was no longer valid, since we don't throw an error now we have no decoding. (We assume the pathname provided will be correctly encoded.) |
||
describe('replace a new path', () => { | ||
it('calls change listeners with the new location', done => { | ||
TestSequences.ReplaceNewLocation(history, done); | ||
|
@@ -93,18 +87,6 @@ describe('a browser history', () => { | |
}); | ||
}); | ||
|
||
describe('replace with an invalid path string (bad percent-encoding)', () => { | ||
it('throws an error', done => { | ||
TestSequences.ReplaceInvalidPathname(history, done); | ||
}); | ||
}); | ||
|
||
describe('location created by encoded and unencoded pathname', () => { | ||
it('produces the same location.pathname', done => { | ||
TestSequences.LocationPathnameAlwaysDecoded(history, done); | ||
}); | ||
}); | ||
|
||
describe('location created with encoded/unencoded reserved characters', () => { | ||
it('produces different location objects', done => { | ||
TestSequences.EncodedReservedCharacters(history, done); | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the owners of this library would prefer a warning: