Add a newline character to the output of a file
All checks were successful
Test / build (push) Successful in 8s
All checks were successful
Test / build (push) Successful in 8s
This commit is contained in:
parent
c9d44683a0
commit
adb8a00c1f
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ describe("Endpoint", () => {
|
|||
expect(OutputHelper.GenerateOutput).toHaveBeenCalledWith(response, options);
|
||||
|
||||
expect(fs.writeFileSync).toHaveBeenCalledTimes(1);
|
||||
expect(fs.writeFileSync).toHaveBeenCalledWith("file.txt", "test output");
|
||||
expect(fs.writeFileSync).toHaveBeenCalledWith("file.txt", "test output\n");
|
||||
|
||||
expect(console.log).not.toHaveBeenCalled();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue