Skip to content

Commit

Permalink
test(platform): Explicitly added a new line type to tests
Browse files Browse the repository at this point in the history
This allows tests to run normally on Windows.
  • Loading branch information
boenrobot committed Feb 10, 2020
1 parent 8321688 commit 35e24ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/plugin/controller-class-visitor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe('Controller methods', () => {
const options: ts.CompilerOptions = {
module: ts.ModuleKind.CommonJS,
target: ts.ScriptTarget.ESNext,
newLine: ts.NewLineKind.LineFeed,
noEmitHelpers: true
};
const filename = 'app.controller.ts';
Expand Down
4 changes: 4 additions & 0 deletions test/plugin/model-class-visitor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('API model properties', () => {
const options: ts.CompilerOptions = {
module: ts.ModuleKind.ESNext,
target: ts.ScriptTarget.ESNext,
newLine: ts.NewLineKind.LineFeed,
noEmitHelpers: true
};
const filename = 'create-cat.dto.ts';
Expand All @@ -41,6 +42,7 @@ describe('API model properties', () => {
const options: ts.CompilerOptions = {
module: ts.ModuleKind.ESNext,
target: ts.ScriptTarget.ESNext,
newLine: ts.NewLineKind.LineFeed,
noEmitHelpers: true
};
const filename = 'create-cat.dto.ts';
Expand All @@ -60,6 +62,7 @@ describe('API model properties', () => {
const options: ts.CompilerOptions = {
module: ts.ModuleKind.ESNext,
target: ts.ScriptTarget.ESNext,
newLine: ts.NewLineKind.LineFeed,
noEmitHelpers: true
};
const filename = 'create-cat-alt2.dto.ts';
Expand All @@ -79,6 +82,7 @@ describe('API model properties', () => {
const options: ts.CompilerOptions = {
module: ts.ModuleKind.CommonJS,
target: ts.ScriptTarget.ES5,
newLine: ts.NewLineKind.LineFeed,
noEmitHelpers: true
};
const filename = 'es5-class.dto.ts';
Expand Down

0 comments on commit 35e24ec

Please sign in to comment.