Skip to content

Commit

Permalink
fix: avoid weird windows \n issues by avoiding n completely
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Mar 2, 2020
1 parent 8674e78 commit c38035a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/typegen/test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ describe('cli reset', () => {
beforeEach(jest.clearAllMocks)

it(`recursively creates directory when one doesn't exist`, () => {
main(['test/generated/foo/bar/baz/this/path/does/not/exist'])
main(['test/generated/foo/bar/baz/fake/path'])
expect(fs.mocks).toMatchInlineSnapshot(`
Object {
"mkdirSync": [
[
"test/generated/foo/bar/baz/this/path/does/not/exist",
"test/generated/foo/bar/baz/fake/path",
{
"recursive": true
}
Expand All @@ -49,7 +49,7 @@ describe('cli reset', () => {
"unlinkSync": [],
"writeFileSync": [
[
"test/generated/foo/bar/baz/this/path/does/not/exist/index.ts",
"test/generated/foo/bar/baz/fake/path/index.ts",
"export const knownTypes = {}\\n",
"utf8"
]
Expand Down

0 comments on commit c38035a

Please sign in to comment.