Fix test expect
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
d692f416b6
commit
462d019309
|
@ -61,7 +61,7 @@ describe("CloudEvents Spec v0.3", () => {
|
||||||
|
|
||||||
it("contenttype() method should maps to 'datacontenttype'", () => {
|
it("contenttype() method should maps to 'datacontenttype'", () => {
|
||||||
cloudevent.contenttype("text/xml");
|
cloudevent.contenttype("text/xml");
|
||||||
expect(cloudevent.getDataContentType()).to.equal("text/xml");
|
expect(cloudevent.spec.payload.datacontenttype).to.equal("text/xml");
|
||||||
cloudevent.contenttype(dataContentType);
|
cloudevent.contenttype(dataContentType);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue