Skip to content

Commit

Permalink
feat: format
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton committed Oct 15, 2023
1 parent e0d7c7f commit 3aa188b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/citgm.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,16 @@ export class Tester extends EventEmitter {
this.emit('fail', err);
payload.error = err;

if(this.options.printLockFile) {
if (this.options.printLockFile) {
const lockFile = await getLockFileContent(this);

if(lockFile?.content) {
if (lockFile?.content) {
// TODO - multiline output is not handled well
this.emit('data', 'info', `${this.module.name} ${lockFile.fileName} lock file content ${lockFile?.content}`);
this.emit(
'data',
'info',
`${this.module.name} ${lockFile.fileName} lock file content ${lockFile?.content}`
);
}
}
}
Expand Down

0 comments on commit 3aa188b

Please sign in to comment.