Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downstream bug fixed and we can remove workaround
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import "./test.json"; | ||
|
||
it("should generate a events.json file", () => { | ||
var fs = require("fs"), | ||
path = require("path"), | ||
var fs = require("fs"), | ||
path = require("path"), | ||
os = require("os"); | ||
|
||
expect(fs.existsSync(path.join(__dirname, "events.json"))).toBe(true); | ||
}); | ||
|
||
it("should have proper setup record inside of the json stream", () => { | ||
var fs = require("fs"), | ||
path = require("path"), | ||
os = require("os"); | ||
var fs = require("fs"), | ||
path = require("path"), | ||
os = require("os"); | ||
|
||
// convert json stream to valid | ||
var source = JSON.parse(fs.readFileSync(path.join(__dirname, "events.json"), "utf-8").toString() + "{}]"); | ||
var source = JSON.parse( | ||
fs.readFileSync(path.join(__dirname, "events.json"), "utf-8") | ||
); | ||
expect(source[0].id).toEqual(1); | ||
}); |