sdk-javascript/test
Lance Ball abc114b24e
lib!: change CloudEvent to use direct object notation and get/set properties (#172)
This commit makes a substantial change to the API, changing the CloudEvent class
to accept properties as an object in the constructor. For example:

```js
const CloudEvent = require('cloudevents-sdk');

// all event properties except extensions may be set in the constructor
const event = new CloudEvent({
  source: 'http://my.event.source',
  type: 'test-event-type'
});

// get and set all properties standard property notation
console.log(event.time); // the event timestamp
event.subject = 'my event subject';
```

Signed-off-by: Lance Ball <lball@redhat.com>
2020-05-22 13:03:36 -04:00
..
bindings/http lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00
formats/json lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
cloud_event_test.js lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00
constants_test.js lib: correct name of CONTENT_ENCODING constant (#168) 2020-05-18 09:44:58 -04:00
fun_tests.js lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
http_binding_0_3.js lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00
http_binding_1.js lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00
sdk_test.js lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00
spec_0_3_tests.js lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00
spec_1_tests.js lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00