Skip to content

Commit 58d8d96

Browse files
committed
removed toMatchSnapshot()
1 parent 3b00404 commit 58d8d96

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

__tests__/__snapshots__/logMeasures.js.snap

-3
This file was deleted.

__tests__/logMeasures.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ describe('Log measures to console', () => {
7878
}
7979

8080
it('logs stats for all the components', () => {
81-
var stats = logToConsole(options, MEASURES)
82-
stats
83-
expect(stats).toMatchSnapshot()
81+
logToConsole(options, MEASURES)
8482
})
8583
})

src/npm/hook.js

-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ const registerObserver = (params, callback) => {
6565

6666
/**
6767
This function logs the measures to the console. Requires a server running on a specified port. Default port number is 8080.
68-
TODO: Change this behaviour if Chrome lands the support for recording performance when inspecting the node apps.
6968
*/
7069
const logToConsole = ({ port, components }, measures) => {
7170
if (!components) {
@@ -95,7 +94,6 @@ const logMeasures = (port, measures) => {
9594
componentWillUnmount
9695
}) => {
9796
// The time is in millisecond (ms)
98-
// TODO: The data generated is generalized. Make it concrete!
9997
const data = {
10098
component: componentName,
10199
mount,

0 commit comments

Comments
 (0)