remove version and Mocha check from snapshot

This commit is contained in:
Gleb Bahmutov
2017-10-05 11:16:53 -04:00
parent 5aace6d9dc
commit 2cbe0575af
2 changed files with 5 additions and 2 deletions

View File

@@ -9,13 +9,13 @@ exports['captures mocha output 1'] = `
stdout:
-------
> cypress@0.20.1 test-mocha <folder path>
> cypress@x.y.z test-mocha <folder path>
> mocha --reporter spec scripts/spec.js
mocha sanity check
works
Y works
1 passing (<time>ms)

View File

@@ -7,6 +7,9 @@ function normalize (s) {
// using forward slashes
return s.replace(process.cwd(), '<folder path>')
.replace(/passing \(\d+ms\)/, 'passing (<time>ms)')
.replace(/cypress@(\d+\.\d+\.\d+)/, 'cypress@x.y.z')
.replace(/✓/g, 'Y') // Mocha check on Mac
.replace(/√/g, 'Y') // Mocha check on Windows
}
/* eslint-env mocha */