@internetarchive/collection-browser 2.10.1-alpha-webdev7479.8 → 2.10.1-alpha-webdev7479.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ describe('Restoration state handler', () => {
15
15
  expect(restorationState.baseQuery).to.equal('boop');
16
16
  });
17
17
 
18
- it('should restore metadata search type from URL without valid sin', async () => {
18
+ it('should restore default search type from URL without valid sin', async () => {
19
19
  const handler = new RestorationStateHandler({ context: 'search' });
20
20
 
21
21
  const url = new URL(window.location.href);
@@ -23,10 +23,10 @@ describe('Restoration state handler', () => {
23
23
  window.history.replaceState({ path: url.href }, '', url.href);
24
24
 
25
25
  const restorationState = handler.getRestorationState();
26
- expect(restorationState.searchType).to.equal(SearchType.METADATA);
26
+ expect(restorationState.searchType).to.equal(SearchType.DEFAULT);
27
27
  });
28
28
 
29
- it('should restore metadata search type if sin explicitly empty in URL', async () => {
29
+ it('should restore default search type if sin explicitly empty in URL', async () => {
30
30
  const handler = new RestorationStateHandler({ context: 'search' });
31
31
 
32
32
  const url = new URL(window.location.href);
@@ -34,7 +34,7 @@ describe('Restoration state handler', () => {
34
34
  window.history.replaceState({ path: url.href }, '', url.href);
35
35
 
36
36
  const restorationState = handler.getRestorationState();
37
- expect(restorationState.searchType).to.equal(SearchType.METADATA);
37
+ expect(restorationState.searchType).to.equal(SearchType.DEFAULT);
38
38
  });
39
39
 
40
40
  it('should restore full text search type from URL', async () => {