Matts PR that just merged removed these tests

This commit is contained in:
Emily Rohrbough
2022-09-15 13:52:38 -05:00
parent 344ee2145e
commit f49884fc46
-37
View File
@@ -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', () => {