Skip to content
Myr

Added more specs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent ef949ae · Browse files · 2 files+16 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+16 added−0 removed

  • tests:+10 added−0 removed
  • other:+6 added−0 removed

2 files+16 added−0 removed

modified:lib/express/utils.js+6 added
modified:spec/spec.utils.js+10 added
102 unmodified lines
103 utils.mergeParam('images[]', '3', params)104 params.images.should.eql ['1', '2', '3']105 end106 end107 108 describe 'when nested'109 it 'should marge correctly'110 params = {}111 utils.mergeParam('user[tj][images][]', '1', params)112 utils.mergeParam('user[tj][images][]', '2', params)113 utils.mergeParam('user[tj][images][]', '3', params)114 params.user.should.eql { tj: { images: ['1', '2', '3'] }}115 end116 end117 end118 119 end120end