|
@@ -8,6 +8,13 @@ module.exports = {
|
|
|
|
|
|
|
|
"constructor()": {
|
|
"constructor()": {
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ "should not throw Error when constructing with no args": function testConstructor(){
|
|
|
|
|
+ assert.doesNotThrow(function(){
|
|
|
|
|
+ new SingleValueAccumulator();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
"should not throw Error when constructing with 1 arg": function testConstructor(){
|
|
"should not throw Error when constructing with 1 arg": function testConstructor(){
|
|
|
assert.doesNotThrow(function(){
|
|
assert.doesNotThrow(function(){
|
|
|
new SingleValueAccumulator(null);
|
|
new SingleValueAccumulator(null);
|
|
@@ -17,11 +24,6 @@ module.exports = {
|
|
|
assert.throws(function(){
|
|
assert.throws(function(){
|
|
|
new SingleValueAccumulator(null, null);
|
|
new SingleValueAccumulator(null, null);
|
|
|
});
|
|
});
|
|
|
- },
|
|
|
|
|
- "should throw Error when constructing with < 1 arg": function testConstructor(){
|
|
|
|
|
- assert.throws(function(){
|
|
|
|
|
- new SingleValueAccumulator();
|
|
|
|
|
- });
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|