Skip to content

Instantly share code, notes, and snippets.

@nicoespeon
Created March 23, 2016 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoespeon/b5b5e03f29233b50c1e1 to your computer and use it in GitHub Desktop.
Save nicoespeon/b5b5e03f29233b50c1e1 to your computer and use it in GitHub Desktop.
Blog - Testing Marionette.js Behaviors - mock view test
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