We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4044b14 commit ca5d813Copy full SHA for ca5d813
modules/utils/__tests__/Path-test.js
@@ -195,6 +195,12 @@ describe('Path.injectParams', function () {
195
});
196
197
198
+ describe('when a pattern has one splat', function () {
199
+ it('returns the correct path', function () {
200
+ expect(Path.injectParams('/a/*/d', { splat: 'b/c' })).toEqual('/a/b/c/d');
201
+ });
202
203
+
204
describe('when a pattern has multiple splats', function () {
205
it('returns the correct path', function () {
206
expect(Path.injectParams('/a/*/c/*', { splat: [ 'b', 'd' ] })).toEqual('/a/b/c/d');
0 commit comments