diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-06 11:36:03 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-06 11:36:03 +0100 |
commit | 069431a55323748b75af89a68867a208aecf52d0 (patch) | |
tree | 52c181dcf7f9d6d8f2909a8a054b493748a4d148 /spec/javascripts/ide/mock_data.js | |
parent | 42849263ddf647d4b1ec67865316b939b44856d0 (diff) | |
download | gitlab-ce-ide-router-specs.tar.gz |
Added tests for IDE routeride-router-specs
We have a lot of logic inside of the router without any tests. This
fixes that by adding tests for each different route that we handle.
Diffstat (limited to 'spec/javascripts/ide/mock_data.js')
-rw-r--r-- | spec/javascripts/ide/mock_data.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/javascripts/ide/mock_data.js b/spec/javascripts/ide/mock_data.js new file mode 100644 index 00000000000..9303bec6757 --- /dev/null +++ b/spec/javascripts/ide/mock_data.js @@ -0,0 +1,11 @@ +export const project = { + web_url: '/namespace-123/project-123', +}; + +export const branch = { + commit: { + id: '123', + }, +}; + +export const files = ['folder/index.js']; |