Use line endings based on script language #88

Use CRLF in batchfile and LF in shellscript.
This commit is contained in:
undergroundwires
2022-09-28 23:09:23 +02:00
parent bbc6156281
commit 6b3f4659df
6 changed files with 89 additions and 2 deletions

View File

@@ -11,6 +11,10 @@ describe('BatchBuilder', () => {
public writeStandardOut(text: string): string {
return super.writeStandardOut(text);
}
public getNewLineTerminator(): string {
return super.getNewLineTerminator();
}
}
describe('getCommentDelimiter', () => {
it('returns expected', () => {
@@ -57,4 +61,15 @@ describe('BatchBuilder', () => {
});
}
});
describe('getNewLineTerminator', () => {
it('returns expected', () => {
// arrange
const expected = '\r\n';
const sut = new BatchBuilderRevealer();
// act
const actual = sut.getNewLineTerminator();
// assert
expect(expected).to.equal(actual);
});
});
});

View File

@@ -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);
});
});
});