From 200725c2c7698ea371fc4504c2333bdfa1288b2d Mon Sep 17 00:00:00 2001 From: Larry Gregory Date: Mon, 30 Jul 2018 13:16:08 -0400 Subject: [PATCH] revert unnecessary changes from #18664 --- src/server/config/complete.test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/server/config/complete.test.js b/src/server/config/complete.test.js index cff1de913e1de..2a1620f4cbb2c 100644 --- a/src/server/config/complete.test.js +++ b/src/server/config/complete.test.js @@ -59,15 +59,16 @@ describe('server/config completeMixin()', function () { }; describe('server decoration', () => { - it('adds several server/request decorations', () => { - const { callCompleteMixin, server } = setup({ + it('adds a config() function to the server', () => { + const { config, callCompleteMixin, server } = setup({ settings: {}, configValues: {} }); callCompleteMixin(); - sinon.assert.callCount(server.decorate, 2); - sinon.assert.calledWithExactly(server.decorate, 'server', 'config', sinon.match.func); + sinon.assert.calledOnce(server.decorate); + sinon.assert.calledWith(server.decorate, 'server', 'config', sinon.match.func); + expect(server.decorate.firstCall.args[2]()).toBe(config); }); });