mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-14 04:29:04 +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()
|
provider = new DefaultDirectoryProvider()
|
||||||
tmp = temp.mkdirSync()
|
tmp = temp.mkdirSync()
|
||||||
nonNormalizedPath = tmp + path.sep + ".." + path.sep + path.basename(tmp)
|
nonNormalizedPath = tmp + path.sep + ".." + path.sep + path.basename(tmp)
|
||||||
expect(tmp.contains("..")).toBe false
|
expect(tmp.includes("..")).toBe false
|
||||||
expect(nonNormalizedPath.contains("..")).toBe true
|
expect(nonNormalizedPath.includes("..")).toBe true
|
||||||
|
|
||||||
directory = provider.directoryForURISync(nonNormalizedPath)
|
directory = provider.directoryForURISync(nonNormalizedPath)
|
||||||
expect(directory.getPath()).toEqual tmp
|
expect(directory.getPath()).toEqual tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user