Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("stringer for query result response with negative result etag", (done) => {
const content = fs.readFileSync(path.join(__dirname, "../Assets/queryResult.json"), "utf-8");
const readable = new stream.Readable();
readable.push(content);
readable.push(null);
const parser = new Parser({
streamValues: false
});
const stringerInstance = stringer({ useValues: true });
let output = "";
stringerInstance.on("data", data => output += data.toString());
stream.pipeline(
readable,
parser,
stringerInstance,
(err) => {
err ? done(err) : done();
assert.strictEqual(output, content);
});
});