Use line endings based on script language #88
Use CRLF in batchfile and LF in shellscript.
This commit is contained in:
@@ -11,6 +11,10 @@ describe('ShellBuilder', () => {
|
||||
public writeStandardOut(text: string): string {
|
||||
return super.writeStandardOut(text);
|
||||
}
|
||||
|
||||
public getNewLineTerminator(): string {
|
||||
return super.getNewLineTerminator();
|
||||
}
|
||||
}
|
||||
describe('getCommentDelimiter', () => {
|
||||
it('returns expected', () => {
|
||||
@@ -52,4 +56,15 @@ describe('ShellBuilder', () => {
|
||||
});
|
||||
}
|
||||
});
|
||||
describe('getNewLineTerminator', () => {
|
||||
it('returns expected', () => {
|
||||
// arrange
|
||||
const expected = '\n';
|
||||
const sut = new ShellBuilderRevealer();
|
||||
// act
|
||||
const actual = sut.getNewLineTerminator();
|
||||
// assert
|
||||
expect(expected).to.equal(actual);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user