Skip to content

Commit 5ee6657

Browse files
committed
chore(): update info test to also spyOn getIonicAppScriptsVersion.
1 parent b8e9023 commit 5ee6657

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/tasks/info.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ describe('info command', function() {
4747
expect(appLibInfo.checkRuntime).not.toHaveBeenCalled();
4848
});
4949

50-
it('should fail if any Info task throws', function() {
50+
it('should gather info', function() {
5151
var gatheredInfo = { info: 'hi' };
5252
spyOn(appLibUtils, 'fail');
5353
spyOn(process, 'cwd').andReturn('/hello/how/areyou');
5454
spyOn(appLibInfo, 'gatherInfo').andReturn(gatheredInfo);
5555
spyOn(appLibInfo, 'getIonicVersion');
5656
spyOn(appLibInfo, 'getIonicCliVersion');
57+
spyOn(appLibInfo, 'getIonicAppScriptsVersion');
5758
spyOn(appLibInfo, 'printInfo');
5859
spyOn(appLibInfo, 'checkRuntime');
5960

@@ -62,6 +63,7 @@ describe('info command', function() {
6263
expect(appLibInfo.gatherInfo).toHaveBeenCalled();
6364
expect(appLibInfo.getIonicVersion).toHaveBeenCalledWith(gatheredInfo, '/hello/how/areyou');
6465
expect(appLibInfo.getIonicCliVersion).toHaveBeenCalledWith(gatheredInfo, jasmine.any(String));
66+
expect(appLibInfo.getIonicAppScriptsVersion).toHaveBeenCalledWith(gatheredInfo, '/hello/how/areyou');
6567
expect(appLibInfo.printInfo).toHaveBeenCalledWith(gatheredInfo);
6668
expect(appLibInfo.checkRuntime).toHaveBeenCalled();
6769

0 commit comments

Comments
 (0)