Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyToolSpec now uses MockLog #291

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

chenlevy24
Copy link
Contributor

No description provided.

Copy link
Collaborator

@PEConn PEConn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 comment from me and 1 comment from GitHub Actions.

@@ -64,7 +66,8 @@ describe('KeyTool', () => {
} as CreateKeyOptions;

it('Executes the correct command to create a key', async () => {
const keyTool = new KeyTool(jdkHelper);
const mockLog = new MockLog();
const keyTool = new KeyTool(jdkHelper, mockLog);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're not doing anything with MockLog (such as checking that certain things are output), we can just do new KeyTool(jdkHelper, new MockLog()).

@@ -19,6 +19,8 @@ import {Config} from '../../../lib/Config';
import util = require('../../../lib/util');
import {JdkHelper} from '../../../lib/jdk/JdkHelper';
import * as fs from 'fs';
import {MockLog} from '../../..';
import mock = require('mock-fs');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still need to get rid of this line.

Copy link
Collaborator

@PEConn PEConn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@andreban andreban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you!

@andreban andreban merged commit 38a7ef1 into GoogleChromeLabs:master Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants