interfaces, add test for clone

This commit is contained in:
Jörg Breitbart
2019-06-17 21:17:56 +02:00
parent 24c39f664d
commit cec1aa3f33
3 changed files with 39 additions and 30 deletions
+4
View File
@@ -113,6 +113,10 @@ describe('Params', () => {
data = [38, [2, 50, 100, 150], 5, [], 6];
assert.deepEqual(Params.fromArray(data).toArray(), [38, [2, 50, 100, 150], 5, 6]);
});
it('clone', () => {
const params = Params.fromArray([38, [2, 50, 100, 150], 5, [], 6, 1, [2, 3], 12345, [-1]]);
assert.deepEqual(params.clone(), params);
});
it('hasSubParams / getSubParams', () => {
const params = Params.fromArray([38, [2, 50, 100, 150], 5, [], 6]);
assert.equal(params.hasSubParams(0), true);