name:
src/test/js/formulas/info/NATest.ts
-rw-r--r--
605
1import { assert } from "chai";
2import { it, describe } from "../../testutils/TestUtils";
3import { F7Exception } from "../../../../main/js/errors/F7Exception";
4import { F7ExceptionName } from "../../../../main/js/errors/F7ExceptionName";
5import { N } from "../../../../main/js/formulas/info/N";
6
7describe("N", function () {
8 it("should return value error", function () {
9 assert.deepEqual(N.SELF.run(null, 19), 19);
10 });
11
12 it("should return error when arguments are not of the correct length", function () {
13 assert.deepEqual((N.SELF.run(null) as F7Exception).name, F7ExceptionName.NA);
14 });
15});