From 069431a55323748b75af89a68867a208aecf52d0 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Fri, 6 Apr 2018 11:36:03 +0100 Subject: Added tests for IDE router 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. --- spec/javascripts/ide/mock_data.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/javascripts/ide/mock_data.js (limited to 'spec/javascripts/ide/mock_data.js') 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']; -- cgit v1.2.1