Skip to content

Commit

Permalink
foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jan 9, 2018
1 parent bebf6d1 commit 462c6ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lighthouse-core/test/lib/asset-saver-test.js
Expand Up @@ -57,7 +57,11 @@ describe('asset-saver helper', () => {
const traceFileContents = fs.readFileSync(traceFilename, 'utf8');
console.timeEnd('read'); console.time('parse');
const parsed = JSON.parse(traceFileContents)
console.timeEnd('parse'); console.time('dse');
console.timeEnd('parse'); console.time('foreach');
traceEvents.forEach((event, i) => {
assert.deepStrictEqual(parsed.traceEvents[i], event);
});
console.timeEnd('foreach'); console.time('dse');
assert.deepStrictEqual(parsed, {traceEvents});
console.timeEnd('dse'); console.time('unlink');
fs.unlinkSync(traceFilename);
Expand Down

0 comments on commit 462c6ca

Please sign in to comment.