Skip to content

Commit 65f6124

Browse files
committed
add explicit test for resolving paths with no leading #
1 parent a016fe4 commit 65f6124

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/core/test/util/resolvers.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,10 @@ test('resolveData - resolves data with % characters', (t) => {
231231
};
232232
t.deepEqual(resolveData(data, '/foo%'), '123');
233233
});
234+
235+
test('resolveData - resolves data for path without leading #', (t) => {
236+
const data = {
237+
foo: '123',
238+
};
239+
t.deepEqual(resolveData(data, '/foo'), '123');
240+
});

0 commit comments

Comments
 (0)