mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 12:35:51 +00:00
Return full path in stubbed 'glob' method
This commit is contained in:
parent
fccb288985
commit
37d44d5d86
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ describe('FSPersistorManagerTests', function() {
|
|||
const error = new Error('guru meditation error')
|
||||
|
||||
const files = ['animals/wombat.tex', 'vegetables/potato.tex']
|
||||
const globs = [`${location}/${files[0]}`, `${location}/${files[1]}`]
|
||||
const filteredFilenames = ['animals_wombat.tex', 'vegetables_potato.tex']
|
||||
let fs, rimraf, stream, LocalFileWriter, FSPersistorManager, glob
|
||||
|
||||
|
@ -31,7 +32,7 @@ describe('FSPersistorManagerTests', function() {
|
|||
open: sinon.stub().yields(null, fd),
|
||||
stat: sinon.stub().yields(null, stat)
|
||||
}
|
||||
glob = sinon.stub().yields(null, files)
|
||||
glob = sinon.stub().yields(null, globs)
|
||||
rimraf = sinon.stub().yields()
|
||||
stream = { pipeline: sinon.stub().yields() }
|
||||
LocalFileWriter = {
|
||||
|
|
Loading…
Add table
Reference in a new issue