Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Jan 7, 2020
1 parent 5ad744f commit 7bf9f8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Reporting: Validate config', () => {
set: sinon.stub(),
};

expect(() => validateEncryptionKey(config, logger)).not.to.throwError();
expect(() => validateEncryptionKey({ config: () => config }, logger)).not.to.throwError();

sinon.assert.calledWith(config.set, 'xpack.reporting.encryptionKey');
sinon.assert.calledWithMatch(logger.warning, /Generating a random key/);
Expand Down

0 comments on commit 7bf9f8b

Please sign in to comment.