mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-04 12:51:12 -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)
|