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