mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add failing fs.async.list spec.
This commit is contained in:
15
spec/stdlib/fs-spec.coffee
Normal file
15
spec/stdlib/fs-spec.coffee
Normal file
@@ -0,0 +1,15 @@
|
||||
fs = require 'fs'
|
||||
|
||||
describe "fs", ->
|
||||
describe ".async", ->
|
||||
describe ".list(directoryPath)", ->
|
||||
directoryPath = nil
|
||||
beforeEach -> directoryPath = require.resolve 'fixtures/file-finder-dir'
|
||||
|
||||
it "returns a promise that resolves to the contents of that directory", ->
|
||||
waitsFor (complete) ->
|
||||
promise = fs.async.list(directoryPath)
|
||||
promise.done (result) ->
|
||||
expect(result).toEqual fs.list(directoryPath)
|
||||
promise.done complete
|
||||
|
||||
Reference in New Issue
Block a user