Skip to content

[test] "Project › generate a project block with noteMd" failing on Windows #62

@erictuvesson

Description

@erictuvesson
> prisma-dbml-generator@0.12.0 test
> jest

 PASS  __tests__/table.test.ts    
 PASS  __tests__/dbml.test.ts
 PASS  __tests__/enums.test.ts
 PASS  __tests__/relations.test.ts
 FAIL  __tests__/project.test.ts
  ● Project › generate a project block with noteMd

    expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 1

      Project "Test Project" {
        database_type: 'PostgreSQL'
        Note: '''
    -     # Test Project Database
    +     # Test Project Database
          **markdown content here**
        '''
      }

      45 |
      46 |     expect(project.length).toEqual(1);
    > 47 |     expect(project[0]).toEqual(expected);
         |                        ^
      48 |   });
      49 | });
      50 |

      at Object.<anonymous> (__tests__/project.test.ts:47:24)

Test Suites: 1 failed, 4 passed, 5 total
Tests:       1 failed, 30 passed, 31 total
Snapshots:   0 total
Time:        3.019 s
Ran all test suites.

Expected: # Test Project Database\n
Actual: # Test Project Database\r\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions