fixup: remove stray import
Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
parent
c5ad706308
commit
4281797b28
|
@ -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}
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue