String.contains is not a standard method in Chrome 41

This commit is contained in:
Cheng Zhao 2015-03-24 12:06:03 +08:00
parent c5510fa14c
commit 2620c95d86

View File

@ -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