Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bugs; added array format ; added nullobject ; added emitall
- Loading branch information
Showing
9 changed files
with
184 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,5 @@ node_js: | |
- "10" | ||
- "8" | ||
- "6" | ||
- "4" | ||
after_success: 'npm run coveralls' | ||
script: "npm run travis" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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); | ||
}); | ||
|
||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters