Skip to content

Commit

Permalink
fix: fixes tests for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethaasan committed Mar 14, 2024
1 parent cbb2410 commit ed50591
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
4 changes: 3 additions & 1 deletion test/generators/FileGenerators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ describe.each(generatorsToTest)(
.at(0)
.at(1);
expect(filePath).toMatch(expectedOutputDirPath);
expect(filePath.replace(expectedOutputDirPath, '')).toMatchSnapshot();
expect(
filePath.replace(`${expectedOutputDirPath}/`, '')
).toMatchSnapshot();
expect(
(FileHelpers.writerToFileSystem as jest.Mock).mock.calls.at(0).at(2)
).toEqual(false);
Expand Down
22 changes: 11 additions & 11 deletions test/generators/__snapshots__/FileGenerators.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`generateToFiles should try and generate models to files 1`] = `"/test_model.go"`;
exports[`generateToFiles should try and generate models to files 1`] = `"test_model.go"`;

exports[`generateToFiles should try and generate models to files 2`] = `"/TestModel.dart"`;
exports[`generateToFiles should try and generate models to files 2`] = `"TestModel.dart"`;

exports[`generateToFiles should try and generate models to files 3`] = `"/TestModel.java"`;
exports[`generateToFiles should try and generate models to files 3`] = `"TestModel.java"`;

exports[`generateToFiles should try and generate models to files 4`] = `"/TestModel.js"`;
exports[`generateToFiles should try and generate models to files 4`] = `"TestModel.js"`;

exports[`generateToFiles should try and generate models to files 5`] = `"/TestModel.ts"`;
exports[`generateToFiles should try and generate models to files 5`] = `"TestModel.ts"`;

exports[`generateToFiles should try and generate models to files 6`] = `"/TestModel.cs"`;
exports[`generateToFiles should try and generate models to files 6`] = `"TestModel.cs"`;

exports[`generateToFiles should try and generate models to files 7`] = `"/test_model.rs"`;
exports[`generateToFiles should try and generate models to files 7`] = `"test_model.rs"`;

exports[`generateToFiles should try and generate models to files 8`] = `"/TestModel.py"`;
exports[`generateToFiles should try and generate models to files 8`] = `"TestModel.py"`;

exports[`generateToFiles should try and generate models to files 9`] = `"/TestModel.kt"`;
exports[`generateToFiles should try and generate models to files 9`] = `"TestModel.kt"`;

exports[`generateToFiles should try and generate models to files 10`] = `"/TestModel.php"`;
exports[`generateToFiles should try and generate models to files 10`] = `"TestModel.php"`;

exports[`generateToFiles should try and generate models to files 11`] = `"/TestModel.hpp"`;
exports[`generateToFiles should try and generate models to files 11`] = `"TestModel.hpp"`;

0 comments on commit ed50591

Please sign in to comment.