UNPKG

392 Btext/coffeescriptView Raw
1{MockLocation} = require('../lib/karen')
2
3describe 'MockLocation', ->
4 def 'location', -> new MockLocation
5
6 describe '#search', ->
7 it 'is empty', ->
8 @location.search.should.equal('')
9
10 describe '#href', ->
11 it 'is localhost', ->
12 @location.href.should.equal('http://localhost')
13
14 describe '#pathname', ->
15 it 'is root', ->
16 @location.pathname.should.equal('/')