Folder for bindings test

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-09 20:56:05 -03:00
parent d84c3d5b0e
commit 15f89e5e97
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
var expect = require("chai").expect;
var Unmarshaller = require("../../../lib/bindings/http/unmarshaller_0_2.js");
describe("HTTP Unmarshaller - Version 0.2", () => {
it("Throw error when payload is not string or object", () => {
// setup
var payload = 83;
var unmarshaller = new Unmarshaller();
// act and assert
expect(unmarshaller.unmarshall.bind(payload))
.to.throw("Invalid payload type, allowed are: string or object");
});
});