mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-18 13:09:56 -06:00
- fixes #1264 - fixes #1321 - fixes #1799 - fixes #2689 - fixes #2688 - fixes #2687 - fixes #2686
16 lines
431 B
JavaScript
16 lines
431 B
JavaScript
let example = require('../index')
|
|
let expect = require('chai').expect
|
|
let normalize = require('path').normalize
|
|
|
|
let cwd = process.cwd()
|
|
|
|
/* global describe, it */
|
|
describe('Cypress Example', function () {
|
|
it('returns path to example_spec', function () {
|
|
let result = example.getPathToExample()
|
|
let expected = `${cwd}/cypress/integration/example_spec.js`
|
|
|
|
expect(normalize(result)).to.eq(normalize(expected))
|
|
})
|
|
})
|