mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
9 lines
316 B
CoffeeScript
9 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)
|