diff --git a/test/integration/config/analytics.test.ts b/test/integration/config/analytics.test.ts index beca18f386a..4d95d641e08 100644 --- a/test/integration/config/analytics.test.ts +++ b/test/integration/config/analytics.test.ts @@ -36,4 +36,16 @@ describe('config:analytics', () => { done(); }); }); + + describe('with status flag', () => { + test + .stderr() + .stdout() + .command(['config:analytics', '--status']) + .it('should show a different informational message depending on the analytics status', (ctx, done) => { + expect(ctx.stdout).to.contain('\nAnalytics are '); + expect(ctx.stderr).to.equal(''); + done(); + }); + }); });