sdk-javascript/test/integration
Lance Ball 82a5f070b5
src: be more forgiving parsing JSON as a string
A simple string is considered valid JSON. However, our parsers do
not accept that unless the string has quotation marks. This commit
modifies the parser to look for strings declared as application/json
which do not begin with '[' '{' or '"' and surrounds them with
quotes.

Signed-off-by: Lance Ball <lball@redhat.com>
2021-05-12 17:57:31 -04:00
..
ce.png fix: do not alter an event's data attribute (#344) 2020-10-06 08:20:54 -04:00
cloud_event_test.ts test: add a test for extension names with all caps. (#389) 2021-03-08 16:07:24 -05:00
constants_test.ts lib: expose constants in a more intuitive way (#299) 2020-08-04 09:42:28 -04:00
emitter_factory_test.ts fix: defaults properly handled for emitterFor() (#399) 2021-04-05 13:14:04 -04:00
emitter_singleton_test.ts feat: allow ensureDelivery to be able to ensure delivery on emit 2020-11-17 08:41:16 -05:00
message_test.ts fix: ensure loose validation for isEvent and toEvent (#394) 2021-03-25 12:37:05 -04:00
parser_test.ts src: be more forgiving parsing JSON as a string 2021-05-12 17:57:31 -04:00
sdk_test.ts feat!: Remove All API's that are labeled "Remove in 4.0" (#362) 2020-11-13 14:12:26 -05:00
spec_1_tests.ts fix: do not alter an event's data attribute (#344) 2020-10-06 08:20:54 -04:00
spec_03_tests.ts fix: do not alter an event's data attribute (#344) 2020-10-06 08:20:54 -04:00
utilities_test.ts feat: simplify validation logic/imports (#265) 2020-07-23 16:09:07 -07:00