mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-02 21:10:47 -05:00
Matts PR that just merged removed these tests
This commit is contained in:
@@ -774,43 +774,6 @@ describe('lib/socket', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
context('on(backend:request, cross:origin:bridge:ready)', () => {
|
||||
it('emits cross:origin:bridge:ready on local bus', function (done) {
|
||||
this.server.socket.localBus.once('cross:origin:bridge:ready', ({ originPolicy }) => {
|
||||
expect(originPolicy).to.equal('http://foobar.com')
|
||||
|
||||
done()
|
||||
})
|
||||
|
||||
this.client.emit('backend:request', 'cross:origin:bridge:ready', { originPolicy: 'http://foobar.com' }, () => {})
|
||||
})
|
||||
})
|
||||
|
||||
context('on(backend:request, cross:origin:release:html)', () => {
|
||||
it('emits cross:origin:release:html on local bus', function (done) {
|
||||
this.server.socket.localBus.once('cross:origin:release:html', () => {
|
||||
done()
|
||||
})
|
||||
|
||||
this.client.emit('backend:request', 'cross:origin:release:html', () => {})
|
||||
})
|
||||
})
|
||||
|
||||
context('on(backend:request, cross:origin:finished)', () => {
|
||||
it('emits cross:origin:finished on local bus', function (done) {
|
||||
this.server.socket.localBus.once('cross:origin:finished', (originPolicy) => {
|
||||
expect(originPolicy).to.equal('http://foobar.com')
|
||||
|
||||
done()
|
||||
})
|
||||
|
||||
// add the origin before calling cross:origin:finished (otherwise we'll fail trying to remove the origin)
|
||||
this.client.emit('backend:request', 'cross:origin:bridge:ready', { originPolicy: 'http://foobar.com' }, () => {})
|
||||
|
||||
this.client.emit('backend:request', 'cross:origin:finished', 'http://foobar.com', () => {})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
context('unit', () => {
|
||||
|
||||
Reference in New Issue
Block a user