diff --git a/test/configCases/plugins/profiling-plugin/index.js b/test/configCases/plugins/profiling-plugin/index.js index c7b9eae8332..0e6426628c8 100644 --- a/test/configCases/plugins/profiling-plugin/index.js +++ b/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); }); diff --git a/yarn.lock b/yarn.lock index 148575cfde1..4a48b646d44 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1357,9 +1357,9 @@ chownr@^1.1.1: integrity sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g== chrome-trace-event@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.0.tgz#45a91bd2c20c9411f0963b5aaeb9a1b95e09cc48" - integrity sha512-xDbVgyfDTT2piup/h8dK/y4QZfJRSa73bw1WZ8b4XM1o7fsFubUVGYcE+1ANtOzJJELGpYoG2961z0Z6OAld9A== + version "1.0.2" + resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4" + integrity sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ== dependencies: tslib "^1.9.0"