Skip to content

Commit

Permalink
spec: Adjust expected output for ppm --version
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeDeeG committed Oct 1, 2023
1 parent 6ceabf1 commit 0d7bf2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/apm-cli-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ describe('apm command line interface', () => {
expect(console.error).not.toHaveBeenCalled();
expect(console.log).toHaveBeenCalled();
const lines = console.log.argsForCall[0][0].split('\n');
expect(lines[0]).toBe(`apm ${require('../package.json').version}`);
expect(lines[0]).toBe(`ppm ${require('../package.json').version}`);
expect(lines[1]).toBe(`npm ${require('npm/package.json').version}`);
expect(lines[2]).toBe(`node ${process.versions.node} ${process.arch}`);
expect(lines[3]).toBe(`atom ${testAtomVersion}`);
expect(lines[3]).toBe(`pulsar ${testAtomVersion}`);
});
});
});
Expand All @@ -60,7 +60,7 @@ describe('apm command line interface', () => {
expect(console.error).not.toHaveBeenCalled();
expect(console.log).toHaveBeenCalled();
const lines = console.log.argsForCall[0][0].split('\n');
expect(lines[0]).toBe(`apm ${require('../package.json').version}`);
expect(lines[0]).toBe(`ppm ${require('../package.json').version}`);
expect(lines[1]).toBe(`npm ${require('npm/package.json').version}`);
expect(lines[2]).toBe(`node ${process.versions.node} ${process.arch}`);
});
Expand All @@ -78,7 +78,7 @@ describe('apm command line interface', () => {
expect(console.error).not.toHaveBeenCalled();
expect(console.log).toHaveBeenCalled();
const lines = console.log.argsForCall[0][0].split('\n');
expect(lines[3]).toBe(`atom ${testAtomVersion}`);
expect(lines[3]).toBe(`pulsar ${testAtomVersion}`);
});
});
});
Expand Down

0 comments on commit 0d7bf2a

Please sign in to comment.