Skip to content

Commit 487720a

Browse files
committed
test(state): getConfig
1 parent 0f5c86c commit 487720a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/stateSpec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,13 @@ describe('state', function () {
287287
}));
288288
});
289289

290+
describe('.getConfig()', function () {
291+
it("should return a copy of the state's config", inject(function ($state) {
292+
expect($state.getConfig('home').url).toBe('/');
293+
expect($state.getConfig('home.item').url).toBe('front/:id');
294+
}));
295+
});
296+
290297
describe(' "data" property inheritance/override', function () {
291298
it('"data" property should stay immutable for if state doesn\'t have parent', inject(function ($state) {
292299
initStateTo(H);

0 commit comments

Comments
 (0)