mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
10 lines
316 B
CoffeeScript
10 lines
316 B
CoffeeScript
|
describe 'Router', ->
|
||
|
Router = require 'lib/Router'
|
||
|
it 'caches the home view', ->
|
||
|
router = new Router()
|
||
|
router.openRoute('home')
|
||
|
expect(router.cache['home']).toBe(router.currentView)
|
||
|
home = router.currentView
|
||
|
router.openRoute('home')
|
||
|
expect(router.cache['home']).toBe(router.currentView)
|