q9
This commit is contained in:
26
node_modules/eslint-plugin-cypress/tests-legacy/config.js
generated
vendored
Normal file
26
node_modules/eslint-plugin-cypress/tests-legacy/config.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/* global describe, it, expect */
|
||||
'use strict'
|
||||
|
||||
const globals = require('globals')
|
||||
const config = require('../legacy.js')
|
||||
|
||||
describe('environments globals', () => {
|
||||
const env = config.environments.globals
|
||||
|
||||
it('should not mutate globals', () => {
|
||||
expect(globals.browser).not.toHaveProperty('cy')
|
||||
expect(globals.mocha).not.toHaveProperty('cy')
|
||||
})
|
||||
|
||||
it('should include other globals', () => {
|
||||
expect(env.globals).toEqual(expect.objectContaining(globals.browser))
|
||||
expect(env.globals).toEqual(expect.objectContaining(globals.mocha))
|
||||
})
|
||||
|
||||
it('should include cypress globals', () => {
|
||||
expect(env.globals).toEqual(expect.objectContaining({
|
||||
cy: false,
|
||||
Cypress: false,
|
||||
}))
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user