You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
670 B

import {Result} from "./Result";
import { Converter } from "./Converter";
import P from "bluebird";
import {readFileSync} from "fs";
import path from "path";
import assert from "assert";
import { JSONResult } from "./lineToJson";
const dataDir=path.join(__dirname,"../test/data/");
describe("Result",()=>{
it ("should return need push downstream based on needEmitAll parameter",function (){
const conv=new Converter();
const res=new Result(conv);
assert.equal(res["needEmitAll"],false);
conv.then();
assert.equal(res["needEmitAll"],true);
conv.parseParam.needEmitAll=false;
assert.equal(res["needEmitAll"],false);
});
})