Revision 1760e128
Added by Justin Sherrill about 10 years ago
engines/bastion/test/content-views/details/content-view-publish.controller.test.js | ||
---|---|---|
it('provides a method to publish a content view version', function() {
|
||
$scope.publish($scope.contentView, $scope.version);
|
||
|
||
expect($scope.transitionTo).toHaveBeenCalledWith('content-views.details.tasks.details',
|
||
{contentViewId: $scope.contentView.id, taskId: 3});
|
||
expect($scope.transitionTo).toHaveBeenCalledWith('content-views.details.versions',
|
||
{contentViewId: $scope.contentView.id});
|
||
});
|
||
|
||
});
|
Also available in: Unified diff
Adapting new dynflow work to content views UI