-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reorganize and refactor application, and childView unit tests #3525
reorganize and refactor application, and childView unit tests #3525
Conversation
test/unit/application.spec.js
Outdated
@@ -36,22 +37,6 @@ describe('Marionette Application', function() { | |||
}); | |||
}); | |||
|
|||
describe('#start', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could move back. start
triggers onBeforeStart
so it's first in the stack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fair, just tried to match the order of the codebase file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well yes but:
1. start(options) {
2. this.triggerMethod('before:start', this, options); //onBeforeStart
3. this.triggerMethod('start', this, options); //onStart
test/unit/behavior.spec.js
Outdated
@@ -1,14 +1,19 @@ | |||
import Marionette from '../../src/backbone.marionette'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's import Behavior
directly rather than Marionette
Could we address the revision requests and conflicts and leave the view test changes to another PR? |
@paulfalgout My apologies, I was planning to create another branch for the views work. I'll revert that now |
7c85c12
to
e3e3311
Compare
e3e3311
to
4487297
Compare
No source changes so I'm merging. Can fix it if anyone objects in subsequent PRs |
Proposed changes
let
in favor ofthis
in beforeEachLink to the issue: #3248
This pr is a small part of the work to refactor the whole unit tests directory. Merging this issue should keep #3248 open