Skip to content

Commit a178aa8

Browse files
test(uiSrefActive): Fix test by making id param optional
1 parent 8ab1fab commit a178aa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/stateDirectivesSpec.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('uiStateRef', function() {
1616
template: '<a ui-sref=".item({ id: 5 })" class="item">Person</a> <ui-view></ui-view>'
1717
}).state('contacts.item', {
1818
url: '/:id',
19+
params: { id: null },
1920
template: '<a ui-sref=".detail" class="item-detail">Detail</a> | <a ui-sref="^" class="item-parent">Parent</a> | <ui-view></ui-view>'
2021
}).state('contacts.item.detail', {
2122
template: '<div class="title">Detail</div> | <a ui-sref="^" class="item-parent2">Item</a>'

0 commit comments

Comments
 (0)