mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-07 06:59:49 -06:00
normalize mocha spec duration in snapshot
This commit is contained in:
@@ -18,7 +18,7 @@ exports['captures mocha output 1'] = `
|
||||
✓ works
|
||||
|
||||
|
||||
1 passing (10ms)
|
||||
1 passing (<time>ms)
|
||||
-------
|
||||
stderr:
|
||||
-------
|
||||
|
||||
@@ -6,6 +6,7 @@ function normalize (s) {
|
||||
// and the command is hardcoded in package.json
|
||||
// using forward slashes
|
||||
return s.replace(process.cwd(), '<folder path>')
|
||||
.replace(/passing \(\d+ms\)/, 'passing (<time>ms)')
|
||||
}
|
||||
|
||||
/* eslint-env mocha */
|
||||
|
||||
Reference in New Issue
Block a user