diff --git a/src/formatter/regexp.spec.ts b/src/formatter/regexp.spec.ts index 9bcb245..0c14571 100644 --- a/src/formatter/regexp.spec.ts +++ b/src/formatter/regexp.spec.ts @@ -1,5 +1,4 @@ import { newLine } from './' -import { isWindows } from '../utils' describe('newLine', () => { it('should return correct new line regexp entry for windows', () => { diff --git a/src/formatter/regexp.ts b/src/formatter/regexp.ts index 9cb8b34..6fc362e 100644 --- a/src/formatter/regexp.ts +++ b/src/formatter/regexp.ts @@ -1,3 +1,5 @@ -import { isWindows } from '../' +// FIXME: if isWindows is used, it breaks cli.spec.ts because Logger is undefined +// import { isWindows } from '../' +// export const newLine = () => (isWindows() ? '\\r\\n' : '\\n') -export const newLine = () => (isWindows() ? '\\r\\n' : '\\n') +export const newLine = () => (process.platform === 'win32' ? '\\r\\n' : '\\n')