Skip to content

Commit 2e6fc53

Browse files
committed
Full test coverage in helpers
1 parent 6b6a71b commit 2e6fc53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/helpers.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ describe('helpers.getLocalPath', () => {
8181
expect(helpers.getLocalPath('$parent/count', subState)).toEqual('foo$bar/choo$test/count');
8282
});
8383

84+
it('replaces $root to root instance and $parent to parent instance', () => {
85+
expect(helpers.getLocalPath('$root/$parent/count', subState)).toEqual('foo$bar/choo$test/count');
86+
});
87+
8488
it('makes no changes when no keywords are used', () => {
8589
expect(helpers.getLocalPath('foo/bar/piri/choo', state)).toEqual('foo/bar/piri/choo');
8690
});

0 commit comments

Comments
 (0)