gitlab-org--gitlab-foss/spec/javascripts
Jacob Schatz 7b18e8c744 Merge branch '13525-sane-defaults-for-merge-request-js-class-constructor' into 'master'
Avoid a TypeError when initializing MergeRequest JS class with no arg

## What does this MR do?

Avoid a TypeError when initializing MergeRequest JS class with no arg.

## Are there points in the code the reviewer needs to double check?

No.

## Why was this MR needed?

Without this sane default you would get the following error when you
tried to instantiate a new MergeRequest object with no argument (i.e.
`new MergeRequest();`):
    
    TypeError: undefined is not an object (evaluating 'this.opts.action')

## What are the relevant issue numbers?

Fixes #13525.

## Does this MR meet the acceptance criteria?

- [x] No CHANGELOG since it's a trivial internal change
- [x] Tests
  - [x] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !4667
2016-06-16 18:32:23 +00:00
..
behaviors Added tests for award emoji feature. 2016-06-06 11:10:10 +02:00
extensions Add JS specs for Array extensions 2015-06-02 20:32:07 -04:00
fixtures Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into category-search-dropdown 2016-06-16 02:04:09 +03:00
graphs Fixed JS errors 2016-06-05 16:15:51 -04:00
u2f Implement authentication (login) using a U2F device. 2016-06-06 12:50:31 +05:30
application_spec.js.coffee Prevent default disabled buttons and links. 2016-06-15 11:37:45 -04:00
awards_handler_spec.js.coffee Move award_menu_url variable into gon object. 2016-06-09 03:37:40 +03:00
issue_spec.js.coffee Update issue_spec test 2016-04-05 13:13:49 -07:00
line_highlighter_spec.js.coffee Apply new design to files page 2015-10-13 16:41:48 +02:00
merge_request_spec.js.coffee Avoid a TypeError when initializing MergeRequest JS class with no arg 2016-06-15 10:33:36 +02:00
merge_request_tabs_spec.js.coffee Fix the "Reload with full diff" URL button 2015-07-23 12:53:54 -07:00
merge_request_widget_spec.js.coffee Fix build notification on merge request page change even if the build status didn't change 2016-05-08 21:41:09 +02:00
new_branch_spec.js.coffee Added tests for award emoji feature. 2016-06-06 11:10:10 +02:00
notes_spec.js.coffee Added tests for categorised search autocomplete. 2016-06-07 17:54:29 +03:00
project_title_spec.js.coffee Added tests for categorised search autocomplete. 2016-06-07 17:54:29 +03:00
right_sidebar_spec.js.coffee Added specs for right sidebar. 2016-05-12 00:38:01 +03:00
search_autocomplete_spec.js.coffee Fix specs and add new tests. 2016-06-10 01:05:09 +03:00
shortcuts_issuable_spec.js.coffee Remove jasmine-fixture, use teaspoon fixtures 2015-05-28 18:22:32 -04:00
spec_helper.coffee Require jquery.turbolinks in all JS specs 2015-10-07 15:23:41 -04:00
syntax_highlight_spec.js.coffee Add specs for syntax_highlight JS 2015-09-10 15:38:24 -04:00
zen_mode_spec.js.coffee Refactor ZenMode 2016-01-08 23:36:09 -05:00