Skip to content

Commit

Permalink
Downstream bug fixed and we can remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jun 4, 2019
1 parent 4345fc5 commit 96b97b5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/configCases/plugins/profiling-plugin/index.js
@@ -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);
});

0 comments on commit 96b97b5

Please sign in to comment.