Skip to content

Commit

Permalink
revert unnecessary changes from #18664
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Jul 30, 2018
1 parent 3159a15 commit 200725c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/server/config/complete.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down

0 comments on commit 200725c

Please sign in to comment.