D | test-utils.js | 3 self.getterRejects = (t, obj, getterName, target) => { argument 4 const getter = Object.getOwnPropertyDescriptor(obj, getterName).get; 6 …return promise_rejects_js(t, TypeError, getter.call(target), getterName + ' should reject with a T… 9 self.getterRejectsForAll = (t, obj, getterName, targets) => { argument 10 return Promise.all(targets.map(target => self.getterRejects(t, obj, getterName, target))); 24 self.getterThrows = (obj, getterName, target) => { argument 25 const getter = Object.getOwnPropertyDescriptor(obj, getterName).get; 27 assert_throws_js(TypeError, () => getter.call(target), getterName + ' should throw a TypeError'); 30 self.getterThrowsForAll = (obj, getterName, targets) => { argument 31 targets.forEach(target => self.getterThrows(obj, getterName, target));
|