-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AppView test suite (incomplete).
refs #7
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
expect = require('chai').expect | ||
Mn = require 'backbone.marionette' | ||
|
||
AppView = require '../../app/coffee/utils/app-view.coffee' | ||
appView = null | ||
|
||
module.exports = describe 'AppView, application base view', -> | ||
|
||
describe 'Class', -> | ||
|
||
it 'should exist', -> | ||
expect(AppView).to.exist | ||
|
||
describe 'Instance', -> | ||
|
||
beforeEach -> | ||
appView = new AppView | ||
|
||
afterEach -> | ||
appView = null | ||
|
||
it 'should extend Mn.View', -> | ||
expect(appView).to.be.instanceof Mn.View | ||
|
||
it.skip 'should set className depending on ROOTVIEWNAME config', -> | ||
|
||
it.skip 'should have appropriate regions', -> | ||
|
||
it.skip 'should run appropriate methods when Radio channel "app" hears events', -> | ||
# trigger events on radio | ||
# check that methods are being called | ||
|
||
it.skip 'showInMain should showChildView in main region', -> | ||
|
||
it.skip 'showInHeader should showChildView in header region', -> | ||
|
||
it.skip 'should run appropriate methods when Radio channel "dialog" hears events', -> | ||
|
||
it.skip 'openDialog should showChildView in dialog region', -> | ||
|
||
it.skip 'closeDialog should reset in dialog region', -> |