UNPKG

yemot-router

Version:

Because I do not know English, the documents are now in Hebrew. With the help of God in teaching English, I'll translate that.

30 lines (18 loc) 694 B
const assert = require("assert"); describe("testeing in yemot-router", () => { describe("testing response_functions", () => { const response_functions = new (require("../lib/response_functions")); describe("testeing make_read_response function", () => { const make_read_response = response_functions.make_read_response; let massage = []; let options = {}; let r = ""; it("", () => { massage = [{ type: "text", data: "hay, is text!" }]; r = make_read_response(massage, "tap", options); assert.equal(r[0], "read=t-hay, is text!=,val_1,no,*,1,7,Number,false,true,,,,"); assert.equal(r[1], "val_1"); }); }); }); });