agent updates

This commit is contained in:
znetsixe
2026-02-12 10:14:56 +01:00
parent 105a3082ab
commit 1cfb36f604
22 changed files with 649 additions and 23 deletions

14
test/assertions.test.js Normal file
View File

@@ -0,0 +1,14 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const Assertions = require('../src/helper/assertionUtils.js');
test('assertNoNaN does not throw for valid nested arrays', () => {
const assertions = new Assertions();
assert.doesNotThrow(() => assertions.assertNoNaN([1, [2, 3, [4]]]));
});
test('assertNoNaN throws when NaN exists in nested arrays', () => {
const assertions = new Assertions();
assert.throws(() => assertions.assertNoNaN([1, [2, NaN]]), /NaN detected/);
});