Commit dfe00773 by Tyler Hallada

Remove tracking test from controller-spec

parent a019ec96
...@@ -29,8 +29,6 @@ define(function(require) { ...@@ -29,8 +29,6 @@ define(function(require) {
.toContainText('Learner Details'); .toContainText('Learner Details');
expect(controller.options.rootView.$('.learners-header-region').html()) expect(controller.options.rootView.$('.learners-header-region').html())
.not.toContainText(date.toLocaleDateString('en-us', {year: 'numeric', month: 'long', day: 'numeric'})); .not.toContainText(date.toLocaleDateString('en-us', {year: 'numeric', month: 'long', day: 'numeric'}));
expect(controller.options.trackingModel.get('page')).toBe('learner_details');
expect(controller.options.trackingModel.trigger).toHaveBeenCalledWith('segment:page');
}; };
// convenience method for asserting that we are on the roster page // convenience method for asserting that we are on the roster page
...@@ -39,8 +37,6 @@ define(function(require) { ...@@ -39,8 +37,6 @@ define(function(require) {
.not.toContainText('Return to Learners'); .not.toContainText('Return to Learners');
expect(controller.options.rootView.$('.learner-roster')).toBeInDOM(); expect(controller.options.rootView.$('.learner-roster')).toBeInDOM();
expect(controller.options.rootView.$('.learners-header-region').html()).toContainText('Learners'); expect(controller.options.rootView.$('.learners-header-region').html()).toContainText('Learners');
expect(controller.options.trackingModel.get('page')).toBe('learner_roster');
expect(controller.options.trackingModel.trigger).toHaveBeenCalledWith('segment:page');
}; };
beforeEach(function() { beforeEach(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment