Skip to content

Commit

Permalink
Extended coverage of environmental requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Leßmann committed Jun 24, 2012
1 parent 8706be9 commit d589e8b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/environment.coffee
Expand Up @@ -6,7 +6,17 @@ describe 'The JavaScript engine', ->
expect(typeof location).toBe('object')
expect(typeof location.hash).toBe('string')

it 'provides the onHashChange event', ->
it 'allows changing location.hash', ->
location.hash = ''
expect(location.hash).not.toEqual('#foo')
location.hash = 'foo'
expect(location.hash).toEqual('#foo')

it 'ignores leading hash symbols when writing to location.hash', ->
location.hash = '#bar'
expect(location.hash).toEqual('#bar')

it 'provides the "onHashChange" event', ->
expect('onhashchange' of window).toBe(true)


Expand Down

0 comments on commit d589e8b

Please sign in to comment.