Created
March 23, 2016 23:50
-
-
Save nicoespeon/b5b5e03f29233b50c1e1 to your computer and use it in GitHub Desktop.
Blog - Testing Marionette.js Behaviors - mock view test
This file contains hidden or 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
describe( "Alert Behavior", () => { | |
let view; | |
beforeEach( () => { | |
view = Marionette.ItemView.extend( { | |
template: _.template( "" ), | |
behaviors: { | |
Alert: { | |
behaviorClass: AlertBehavior, | |
title: "Title", | |
message: "My message." | |
} | |
} | |
} ); | |
} ); | |
// … | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment