Skip to content

Commit

Permalink
Greentest: matchesSavedMap with regex prefix should match url with path
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveIsGrief committed Oct 16, 2019
1 parent 3b09d4a commit f660ddf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/__tests__/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ describe('utils', () => {
});
describe('with regex host prefix', () => {
it('should match url without path', () => {
expect(
utils.matchesSavedMap(
'https://duckduckgo.com',
matchDomainOnly, {
host: '@duckduckgo.com',
})
).toBe(true);
});
it('should match url with path', () => {
expect(
utils.matchesSavedMap(
'https://duckduckgo.com/?q=search+me+baby',
Expand Down

0 comments on commit f660ddf

Please sign in to comment.