Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Style - fix indentation

  • Loading branch information...
commit a5db59b8124262955da6718ef86ee917edfb5909 1 parent 65b1e4b
Vojta Jina authored
Showing with 28 additions and 28 deletions.
  1. +28 −28 test/fs.spec.coffee
56 test/fs.spec.coffee
View
@@ -216,42 +216,42 @@ describe 'fs', ->
waitForFinished()
- # ===========================================================================
- # fs.watchFile
- # ===========================================================================
- describe 'watchFile', ->
+ # ===========================================================================
+ # fs.watchFile
+ # ===========================================================================
+ describe 'watchFile', ->
- it 'should call when when file accessed', ->
- callback = jasmine.createSpy('watcher').andCallFake (current, previous) ->
- expect(current.isFile()).toBe true
- expect(previous.isFile()).toBe true
- expect(current.mtime).toEqual previous.mtime
+ it 'should call when when file accessed', ->
+ callback = jasmine.createSpy('watcher').andCallFake (current, previous) ->
+ expect(current.isFile()).toBe true
+ expect(previous.isFile()).toBe true
+ expect(current.mtime).toEqual previous.mtime
- fs.watchFile '/home/vojta/some.js', callback
- expect(callback).not.toHaveBeenCalled()
+ fs.watchFile '/home/vojta/some.js', callback
+ expect(callback).not.toHaveBeenCalled()
- fs._touchFile '/home/vojta/some.js'
- expect(callback).toHaveBeenCalled()
+ fs._touchFile '/home/vojta/some.js'
+ expect(callback).toHaveBeenCalled()
- it 'should call when file modified', ->
- original = new Date '2012-01-01'
- modified = new Date '2012-01-02'
+ it 'should call when file modified', ->
+ original = new Date '2012-01-01'
+ modified = new Date '2012-01-02'
- callback = jasmine.createSpy('watcher').andCallFake (current, previous) ->
- expect(previous.mtime).toEqual original
- expect(current.mtime).toEqual modified
+ callback = jasmine.createSpy('watcher').andCallFake (current, previous) ->
+ expect(previous.mtime).toEqual original
+ expect(current.mtime).toEqual modified
- fs.watchFile '/home/vojta/some.js', callback
- expect(callback).not.toHaveBeenCalled()
+ fs.watchFile '/home/vojta/some.js', callback
+ expect(callback).not.toHaveBeenCalled()
- fs._touchFile '/home/vojta/some.js', '2012-01-02', 'new content'
- expect(callback).toHaveBeenCalled()
+ fs._touchFile '/home/vojta/some.js', '2012-01-02', 'new content'
+ expect(callback).toHaveBeenCalled()
- it 'should allow optional second argument (options)', ->
- callback = jasmine.createSpy 'watcher'
- fs.watchFile '/home/vojta/some.js', {some: 'options'}, callback
- fs._touchFile '/home/vojta/some.js'
+ it 'should allow optional second argument (options)', ->
+ callback = jasmine.createSpy 'watcher'
+ fs.watchFile '/home/vojta/some.js', {some: 'options'}, callback
+ fs._touchFile '/home/vojta/some.js'
- expect(callback).toHaveBeenCalled()
+ expect(callback).toHaveBeenCalled()
Please sign in to comment.
Something went wrong with that request. Please try again.