tech: progress on react pages

This commit is contained in:
Torkel Ödegaard
2017-12-28 17:01:28 +01:00
parent 5b91bb9163
commit 8fd8853770
8 changed files with 115 additions and 44 deletions

View File

@@ -0,0 +1,14 @@
export const backendSrv = {
get: jest.fn(),
};
export function createNavTree(...args) {
let root = [];
let node = root;
for (let arg of args) {
let child = { id: arg, url: `/url/${arg}`, text: `${arg}-Text`, children: [] };
node.push(child);
node = child.children;
}
return root;
}