Skip to content

Commit

Permalink
fix(UTs): Correct proxy listeners expectation
Browse files Browse the repository at this point in the history
Expectations added in #2596
didn't match `EventEmitter` API for `listeners`.
  • Loading branch information
briandipalma committed May 3, 2018
1 parent b4fddd2 commit af9c84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/middleware/proxy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ describe('middleware.proxy', () => {
}
var parsedProxyConfig = m.parseProxyConfig(proxy, config)
expect(parsedProxyConfig).to.have.length(1)
expect(parsedProxyConfig[0].proxy.listeners('proxyReq', true)).to.equal(true)
expect(parsedProxyConfig[0].proxy.listeners('proxyRes', true)).to.equal(true)
expect(parsedProxyConfig[0].proxy.listeners('proxyReq')[0]).to.equal(config.proxyReq)
expect(parsedProxyConfig[0].proxy.listeners('proxyRes')[0]).to.equal(config.proxyRes)
})

it('should handle empty proxy config', () => {
Expand Down

0 comments on commit af9c84a

Please sign in to comment.