javascript - Test an array of values in Ember.js? -
is there way test array of inputs (on same test) in ember.js? server-side, use library https://github.com/fluentsoftware/data-driven achieve functionality.
something works in pinch:
test('adds 1 input', function(assert) { let service = this.subject(); [{ v: 0, r: 1}, { v: 5, r: 6}].foreach(function (i) { service.set('num', i.v); assert.equal(service.get('num2'), i.r); }); });
the problem lose well-named tests , few other niceties.
Comments
Post a Comment