Update NodeJS unit test to expect zero element when computeAggregateKzgProof is supplied an empty array of blobs
This commit is contained in:
parent
084fd2209e
commit
2232b02329
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "c-kzg",
|
"name": "c-kzg",
|
||||||
"version": "0.0.9",
|
"version": "1.0.0",
|
||||||
"description": "NodeJS bindings for C-KZG",
|
"description": "NodeJS bindings for C-KZG",
|
||||||
"author": "Dan Coffman",
|
"author": "Dan Coffman",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -38,8 +38,12 @@ describe("C-KZG", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("throws an error when blobs is an empty array", () => {
|
it("throws an error when blobs is an empty array", () => {
|
||||||
expect(() => computeAggregateKzgProof([])).toThrowError(
|
expect(computeAggregateKzgProof([]).toString()).toEqual(
|
||||||
"Failed to compute proof",
|
[
|
||||||
|
192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0,
|
||||||
|
].toString(),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue