Skip to content

Commit

Permalink
fix(cli-repl): adjust expected appName version in test for releases (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored Jan 18, 2022
1 parent c6f2064 commit 1a20060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli-repl/test/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ describe('e2e', function() {
return this.skip(); // $currentOp is unversioned
}
const currentOp = await shell.executeLine('db.currentOp()');
expect(currentOp).to.include("appName: 'mongosh 0.0.0-dev.0'");
const { version } = require('../package.json');
expect(currentOp).to.include(`appName: 'mongosh ${version}'`);
expect(currentOp).to.include("name: 'nodejs|mongosh'");
shell.assertNoErrors();
});
Expand Down

0 comments on commit 1a20060

Please sign in to comment.