Opening a previously opened url restores the same buffer and session.

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-01-05 16:33:53 -08:00
parent 12cf511a40
commit 18b9782b16
5 changed files with 38 additions and 11 deletions

View File

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