Closed br0r closed 9 years ago
oneOf doesn't work as intended.
Should be able to handle Duns.string().oneOf(['1', '2', '3']).
Duns.string().oneOf(['1', '2', '3'])
It has logic for it, but the code uses concat wrong. It simply does val.concat(newVal). It should do val = val.concat(newVal).
concat
val.concat(newVal)
val = val.concat(newVal)
oneOf doesn't work as intended.
Should be able to handle
Duns.string().oneOf(['1', '2', '3'])
.It has logic for it, but the code uses
concat
wrong. It simply doesval.concat(newVal)
. It should doval = val.concat(newVal)
.