mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-09 23:44:24 +03:00
String.contains is not a standard method in Chrome 41
This commit is contained in:
parent
c5510fa14c
commit
2620c95d86
@ -15,8 +15,8 @@ describe "DefaultDirectoryProvider", ->
|
||||
provider = new DefaultDirectoryProvider()
|
||||
tmp = temp.mkdirSync()
|
||||
nonNormalizedPath = tmp + path.sep + ".." + path.sep + path.basename(tmp)
|
||||
expect(tmp.contains("..")).toBe false
|
||||
expect(nonNormalizedPath.contains("..")).toBe true
|
||||
expect(tmp.includes("..")).toBe false
|
||||
expect(nonNormalizedPath.includes("..")).toBe true
|
||||
|
||||
directory = provider.directoryForURISync(nonNormalizedPath)
|
||||
expect(directory.getPath()).toEqual tmp
|
||||
|
Loading…
Reference in New Issue
Block a user