mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Opening a previously opened url restores the same buffer and session.
This commit is contained in:
@@ -25,15 +25,13 @@ describe "fs", ->
|
||||
|
||||
describe "when recursive is true", ->
|
||||
it "returns a promise that resolves to the recursive contents of that directory that are files", ->
|
||||
waitsFor (complete) ->
|
||||
waitsForPromise ->
|
||||
fs.async.listFiles(directoryPath, true).done (result) ->
|
||||
expect(result).toEqual (path for path in fs.list(directoryPath, true) when fs.isFile(path))
|
||||
complete()
|
||||
|
||||
describe "when recursive is false", ->
|
||||
it "returns a promise that resolves to the contents of that directory that are files", ->
|
||||
waitsFor (complete) ->
|
||||
waitsForPromise ->
|
||||
fs.async.listFiles(directoryPath).done (result) ->
|
||||
expect(result).toEqual (path for path in fs.list(directoryPath) when fs.isFile(path))
|
||||
complete()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user