fix formatting with make format_fix

This commit is contained in:
Brian Gough
2020-06-02 09:18:38 +01:00
parent 8c60406bb5
commit 17c14b1192
4 changed files with 14 additions and 19 deletions

View File

@@ -38,7 +38,7 @@ describe('LatexRunner', function() {
})
},
'./CommandRunner': (this.CommandRunner = {}),
'fs': (this.fs = {
fs: (this.fs = {
writeFile: sinon.stub().callsArg(2)
})
}
@@ -87,18 +87,12 @@ describe('LatexRunner', function() {
.should.equal(true)
})
it('should record the stdout and stderr', function () {
it('should record the stdout and stderr', function() {
this.fs.writeFile
.calledWith(
this.directory + '/' + 'output.stdout',
"this is stdout"
)
.calledWith(this.directory + '/' + 'output.stdout', 'this is stdout')
.should.equal(true)
this.fs.writeFile
.calledWith(
this.directory + '/' + 'output.stderr',
"this is stderr"
)
.calledWith(this.directory + '/' + 'output.stderr', 'this is stderr')
.should.equal(true)
})
})

View File

@@ -262,19 +262,19 @@ describe('ResourceWriter', function() {
.should.equal(true)
})
it('should delete the stdout log file', function () {
it('should delete the stdout log file', function() {
return this.ResourceWriter._deleteFileIfNotDirectory
.calledWith(path.join(this.basePath, 'output.stdout'))
.should.equal(true)
})
it('should delete the stderr log file', function () {
it('should delete the stderr log file', function() {
return this.ResourceWriter._deleteFileIfNotDirectory
.calledWith(path.join(this.basePath, 'output.stderr'))
.should.equal(true)
})
it('should delete the extra files', function () {
it('should delete the extra files', function() {
return this.ResourceWriter._deleteFileIfNotDirectory
.calledWith(path.join(this.basePath, 'extra/file.tex'))
.should.equal(true)