Document the unit test
This commit is contained in:
parent
224993b824
commit
13afaf0f63
12
README.md
12
README.md
|
|
@ -1,6 +1,8 @@
|
||||||
# sdk-javascript
|
# sdk-javascript
|
||||||
Javascript SDK for CloudEvents
|
Javascript SDK for CloudEvents
|
||||||
|
|
||||||
|
> This is a WPI
|
||||||
|
|
||||||
# Repository Structure
|
# Repository Structure
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
|
@ -40,6 +42,16 @@ Javascript SDK for CloudEvents
|
||||||
|
|
||||||
* `test/cloudevent_spec_0_2.js`: unit testing for spec 0.2
|
* `test/cloudevent_spec_0_2.js`: unit testing for spec 0.2
|
||||||
|
|
||||||
|
# Unit Testing
|
||||||
|
|
||||||
|
The unit test checks the result of formatted payload and the constraints.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
npm test
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
# The API
|
# The API
|
||||||
|
|
||||||
## `Cloudevent` class
|
## `Cloudevent` class
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue