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 ca5d813 commit 9a265b3Copy full SHA for 9a265b3
modules/utils/__tests__/Path-test.js
@@ -205,6 +205,12 @@ describe('Path.injectParams', function () {
205
it('returns the correct path', function () {
206
expect(Path.injectParams('/a/*/c/*', { splat: [ 'b', 'd' ] })).toEqual('/a/b/c/d');
207
});
208
+
209
+ it('complains if not given enough splat values', function () {
210
+ expect(function() {
211
+ Path.injectParams('/a/*/c/*', { splat: [ 'b' ] });
212
+ }).toThrow(Error);
213
+ });
214
215
216
0 commit comments