|
|
|
@ -22,6 +22,7 @@ test('URLSearchParams.set', () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
flushSync(() => {
|
|
|
|
flushSync(() => {
|
|
|
|
|
|
|
|
// nothing should happen here
|
|
|
|
params.set('a', 'c');
|
|
|
|
params.set('a', 'c');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@ -45,6 +46,7 @@ test('URLSearchParams.append', () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
flushSync(() => {
|
|
|
|
flushSync(() => {
|
|
|
|
|
|
|
|
// nothing should happen here
|
|
|
|
params.set('a', 'b');
|
|
|
|
params.set('a', 'b');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@ -72,6 +74,7 @@ test('URLSearchParams.delete', () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
flushSync(() => {
|
|
|
|
flushSync(() => {
|
|
|
|
|
|
|
|
// nothing should happen here
|
|
|
|
params.delete('a');
|
|
|
|
params.delete('a');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@ -123,6 +126,7 @@ test('URLSearchParams.getAll', () => {
|
|
|
|
log.push(params.get('a'));
|
|
|
|
log.push(params.get('a'));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
render_effect(() => {
|
|
|
|
render_effect(() => {
|
|
|
|
|
|
|
|
// this should only logged once because other changes shouldn't affect this
|
|
|
|
log.push(params.get('c'));
|
|
|
|
log.push(params.get('c'));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
render_effect(() => {
|
|
|
|
render_effect(() => {
|
|
|
|
|