Remove ugly test
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
9ff4b01ac5
commit
66abc90cc2
|
@ -164,16 +164,6 @@ describe("CloudEvents Spec v0.3", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("'datacontentencoding'", () => {
|
describe("'datacontentencoding'", () => {
|
||||||
it("should throw an error when 'data' is not a string", () => {
|
|
||||||
cloudevent
|
|
||||||
.dataContentEncoding(dataContentEncoding);
|
|
||||||
expect(cloudevent.format.bind(cloudevent))
|
|
||||||
.to
|
|
||||||
.throw("invalid payload");
|
|
||||||
cloudevent.data(data);
|
|
||||||
delete cloudevent.spec.payload.datacontentencoding;
|
|
||||||
});
|
|
||||||
|
|
||||||
it("should throw an error when is a unsupported encoding" , () => {
|
it("should throw an error when is a unsupported encoding" , () => {
|
||||||
cloudevent
|
cloudevent
|
||||||
.data("Y2xvdWRldmVudHMK")
|
.data("Y2xvdWRldmVudHMK")
|
||||||
|
|
Loading…
Reference in New Issue