mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 23:20:47 +02:00
Merge pull request #10888 from overleaf/bg-case-sensitive-delete
Make dropbox deletes case-sensitive GitOrigin-RevId: 090112ce82e38f15079053952db4b0a1544e8300
This commit is contained in:
@@ -400,6 +400,19 @@ describe('ProjectLocator', function () {
|
||||
)
|
||||
})
|
||||
|
||||
it('should not return elements with a case-insensitive match when exactCaseMatch is true', function (done) {
|
||||
const path = `${subFolder.name.toUpperCase()}/${secondSubFolder.name.toUpperCase()}/${subSubFile.name.toUpperCase()}`
|
||||
this.locator.findElementByPath(
|
||||
{ project, path, exactCaseMatch: true },
|
||||
(err, element, type, folder) => {
|
||||
err.should.not.equal(undefined)
|
||||
expect(element).to.be.undefined
|
||||
expect(type).to.be.undefined
|
||||
done()
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
it('should take a file path and return the element for a nested folder', function (done) {
|
||||
const path = `${subFolder.name}/${secondSubFolder.name}`
|
||||
this.locator.findElementByPath(
|
||||
|
||||
Reference in New Issue
Block a user