Repository navigation
Closed
Labels
good first issueGood for newcomersGood for newcomersmodule/testIssues and changes related to the testsIssues and changes related to the testsstatus/no-issue-activitytype/questionFurther information is requestedFurther information is requested
Description
At the end of a npm run test, there says there is 6 pending tests.
~/develop/cloudevents/sdk-javascript(master) » ./node_modules/mocha/bin/mocha --require ts-node/register test/cloud_event_test.ts
A CloudEvent
✓ Can be constructed with a typed Message
✓ serializes as JSON with toString()
A 1.0 CloudEvent
✓ has retreivable source and type attributes
✓ defaults to specversion 1.0
✓ generates an ID if one is not provided in the constructor
✓ can be constructed with an ID
✓ generates a timestamp by default
✓ can be constructed with a timestamp
✓ can be constructed with a datacontenttype
✓ can be constructed with a dataschema
✓ can be constructed with a subject
✓ throws a TypeError when constructed with a schemaurl
✓ can be constructed with data
✓ can be constructed with extensions
- throws ValidationError if the CloudEvent does not conform to the schema
- returns a JSON string even if format is invalid
- correctly formats a CloudEvent as JSON
A 0.3 CloudEvent
✓ has retreivable source and type attributes
✓ generates an ID if one is not provided in the constructor
✓ generates a timestamp by default
✓ can be constructed with a timestamp
✓ can be constructed with a datacontenttype
✓ can be constructed with a datacontentencoding
✓ can be constructed with a schemaurl
✓ can be constructed with a subject
✓ throws a TypeError when constructed with a dataschema
✓ can be constructed with data
- throws ValidationError if the CloudEvent does not conform to the schema
- returns a JSON string even if format is invalid
- correctly formats a CloudEvent as JSON
24 passing (11ms)
6 pending
There are 6 tests here, https://github.com/cloudevents/sdk-javascript/blob/master/test/cloud_event_test.ts#L104 that don't do anything.
Were these just place holders when doing the TS re-write and should be removed? or do they need to be implemented?
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersmodule/testIssues and changes related to the testsIssues and changes related to the testsstatus/no-issue-activitytype/questionFurther information is requestedFurther information is requested
Activity
lholmquist commentedon Jun 30, 2020
@lance ^^
lance commentedon Jun 30, 2020
@lholmquist yeah - they were tests that I never implemented in the cut over to TS. There is some overlap with these and other tests in
spec_1_tests.tsso I didn't consider it an urgent prioritylholmquist commentedon Jun 30, 2020
sort of what i thought.
github-actions commentedon Aug 1, 2020
This issue is stale because it has been open 30 days with no activity.
test: implement pending tests leftover from TS rewrite
test: implement pending tests leftover from TS rewrite (#315)
test: implement pending tests leftover from TS rewrite (#315)