Skip to content

Commit

Permalink
Simple test for displayProps.
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh committed Jun 23, 2020
1 parent f12e412 commit 9041a0a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/driver/cypress/integration/commands/log_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,3 +479,17 @@ describe('last arg can be an object, but not an option', () => {
cy.get('#b').uncheck(['us', 'ca'])
})
})

const log = require('../../../src/cypress/log')

describe('display props are relayed correctly', () => {
it('timeout and wallClockStartedAt', () => {
const props = log.getDisplayProps({
timeout: 4000,
wallClockStartedAt: new Date().toJSON(),
})

expect(props).to.haveOwnProperty('timeout')
expect(props).to.haveOwnProperty('wallClockStartedAt')
})
})

0 comments on commit 9041a0a

Please sign in to comment.