Skip to content

Commit

Permalink
Rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Oct 1, 2021
1 parent 23e5caa commit 68a45b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/js/route.test.js
Original file line number Diff line number Diff line change
@@ -888,7 +888,7 @@ describe('current()', () => {
same(route().current(), 'events.venues.index');
});

test('does not match similiar named routes', () => {
test('matches route name with multiple periods', () => {
global.window.location.pathname = '/events/1/venues';

same(route().current('events.venues-index'), false);
@@ -900,7 +900,7 @@ describe('current()', () => {
same(route().current('events.venues.index'), false);
});

test('does not match similiar named routes with wildcards', () => {
test('matches route name with multiple periods and wildcards', () => {
global.window.location.pathname = '/events/1/venues-index';

same(route().current('events.venues-index'), true);

0 comments on commit 68a45b6

Please sign in to comment.