Skip to content

Commit

Permalink
Revert "test: remove test as feature is no longer needed"
Browse files Browse the repository at this point in the history
This reverts commit 759ebd4.
  • Loading branch information
ozyx committed Mar 5, 2024
1 parent 6383a21 commit 87b9866
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tools/urlSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,15 @@ describe('the url tool', function () {
const constructedURL = objectPathToUrl(openmct, mockObjectPath);
expect(constructedURL).toContain('#/browse/mock-parent-folder/mock-folder');
});
it('can take params to set a custom url', () => {
const customParams = {
'tc.startBound': 1669911059,
'tc.endBound': 1669911082,
'tc.mode': 'fixed'
};
const constructedURL = objectPathToUrl(openmct, mockObjectPath, customParams);
expect(constructedURL).toContain('tc.startBound=1669911059&tc.endBound=1669911082');
expect(constructedURL).toContain('tc.mode=fixed');
});
});
});

0 comments on commit 87b9866

Please sign in to comment.