fixup: remove stray import

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2023-05-08 16:03:57 -04:00
parent c5ad706308
commit 4281797b28
No known key found for this signature in database
GPG Key ID: CB73DF2ADE9364B4
2 changed files with 0 additions and 4 deletions

View File

@ -4,7 +4,6 @@
*/
import { types } from "util";
import JSONbig from "json-bigint";
import { CloudEvent, CloudEventV1, CONSTANTS, Mode, Version } from "../..";
import { Message, Headers, Binding } from "..";
@ -20,8 +19,6 @@ import {
import { isStringOrObjectOrThrow, ValidationError } from "../../event/validation";
import { JSONParser, MappedParser, Parser, parserByContentType } from "../../parsers";
const JSON = JSONbig(({ useNativeBigInt: true }));
/**
* Serialize a CloudEvent for HTTP transport in binary mode
* @implements {Serializer}

View File

@ -55,7 +55,6 @@ describe("JSON Event Format Parser", () => {
const payload = "{gg";
const parser = new Parser();
console.error("BIG_INT", process.env["CLOUDEVENT_BIG_INT"]);
// TODO: Should the parser catch the SyntaxError and re-throw a ValidationError?
expect(parser.parse.bind(parser, payload)).to.throw(SyntaxError);
});